home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 7 / CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso / • The Arcade • / Flipper•••• / Flipper••••.rsrc / CODE_1_Main.txt < prev    next >
Text File  |  1991-12-22  |  157KB  |  2,843 lines

  1. # near model CODE resource
  2. # jump table entries: 0-6 (7 of them)
  3. fn00000000:
  4. 00000000  4E56 FFFC                link       A6, -0x0004
  5. 00000004  48E7 0108                movem.l    -[A7], D7,A4
  6. 00000008  49ED F50E                lea.l      A4, [A5 - 0xAF2]
  7. 0000000C  A063                     syscall    MaxApplZone
  8. 0000000E  486D FE7E                pea.l      [A5 - 0x182]
  9. 00000012  A86E                     syscall    InitGraf
  10. 00000014  A8FE                     syscall    InitFonts
  11. 00000016  A912                     syscall    InitWindows
  12. 00000018  A930                     syscall    InitMenus
  13. 0000001A  A9CC                     syscall    TEInit
  14. 0000001C  7000                     moveq.l    D0, 0x00
  15. 0000001E  2F00                     move.l     -[A7], D0
  16. 00000020  A97B                     syscall    InitDialogs
  17. 00000022  A850                     syscall    InitCursor
  18. 00000024  4EBA 1CC2                jsr        [PC + 0x1CC2 /* 00001CE8 */]
  19. 00000028  7001                     moveq.l    D0, 0x01
  20. 0000002A  2F00                     move.l     -[A7], D0
  21. 0000002C  2F3C 0000 A860           move.l     -[A7], 0xA860
  22. 00000032  4EBA 1468                jsr        [PC + 0x1468 /* 0000149C */]
  23. 00000036  1B40 FA18                move.b     [A5 - 0x5E8], D0
  24. 0000003A  558F                     subq.l     A7, 2
  25. 0000003C  7001                     moveq.l    D0, 0x01
  26. 0000003E  3F00                     move.w     -[A7], D0
  27. 00000040  486D F9FA                pea.l      [A5 - 0x606]
  28. 00000044  4EBA 1B38                jsr        [PC + 0x1B38 /* 00001B7E */]
  29. 00000048  1B6D FA03 FA24           move.b     [A5 - 0x5DC], [A5 - 0x5FD]
  30. 0000004E  4FEF 000A                lea.l      A7, [A7 + 0xA]
  31. 00000052  6704                     beq        +0x6 /* 00000058 */
  32. 00000054  4EBA 0D4A                jsr        [PC + 0xD4A /* 00000DA0 */]
  33. label00000058:
  34. 00000058  4EBA 0ED2                jsr        [PC + 0xED2 /* 00000F2C */]
  35. 0000005C  4EBA 0794                jsr        [PC + 0x794 /* 000007F2 */]
  36. 00000060  598F                     subq.l     A7, 4
  37. 00000062  A8D8                     syscall    NewRgn
  38. 00000064  2B5F FD64                move.l     [A5 - 0x29C], [A7]+
  39. 00000068  598F                     subq.l     A7, 4
  40. 0000006A  A975                     syscall    TickCount
  41. 0000006C  2E1F                     move.l     D7, [A7]+
  42. 0000006E  2B47 FE00                move.l     [A5 - 0x200], D7
  43. 00000072  422D FA1C                clr.b      [A5 - 0x5E4]
  44. 00000076  397C 0003 0006           move.w     [A4 + 0x6], 0x3
  45. 0000007C  422D FA1E                clr.b      [A5 - 0x5E2]
  46. 00000080  4A2D FA24                tst.b      [A5 - 0x5DC]
  47. 00000084  6716                     beq        +0x18 /* 0000009C */
  48. 00000086  598F                     subq.l     A7, 4
  49. 00000088  3F3C 2549                move.w     -[A7], 0x2549 /* '%I' */
  50. 0000008C  7000                     moveq.l    D0, 0x00
  51. 0000008E  2F00                     move.l     -[A7], D0
  52. 00000090  72FF                     moveq.l    D1, 0xFFFFFFFF
  53. 00000092  2F01                     move.l     -[A7], D1
  54. 00000094  AA46                     syscall    GetNewCWindow
  55. 00000096  2B5F FA0A                move.l     [A5 - 0x5F6], [A7]+
  56. 0000009A  6014                     bra        +0x16 /* 000000B0 */
  57. label0000009C:
  58. 0000009C  598F                     subq.l     A7, 4
  59. 0000009E  3F3C 2549                move.w     -[A7], 0x2549 /* '%I' */
  60. 000000A2  7000                     moveq.l    D0, 0x00
  61. 000000A4  2F00                     move.l     -[A7], D0
  62. 000000A6  72FF                     moveq.l    D1, 0xFFFFFFFF
  63. 000000A8  2F01                     move.l     -[A7], D1
  64. 000000AA  A9BD                     syscall    GetNewWindow
  65. 000000AC  2B5F FA0A                move.l     [A5 - 0x5F6], [A7]+
  66. label000000B0:
  67. 000000B0  4EBA 0F4E                jsr        [PC + 0xF4E /* 00001000 */]
  68. 000000B4  2F2D FA0A                move.l     -[A7], [A5 - 0x5F6]
  69. 000000B8  A873                     syscall    SetPort
  70. 000000BA  4247                     clr.w      D7
  71. 000000BC  6000 01B2                bra        +0x1B4 /* 00000270 */
  72. label000000C0:
  73. 000000C0  4A2D FA18                tst.b      [A5 - 0x5E8]
  74. 000000C4  6718                     beq        +0x1A /* 000000DE */
  75. 000000C6  558F                     subq.l     A7, 2
  76. 000000C8  70FF                     moveq.l    D0, 0xFFFFFFFF
  77. 000000CA  3F00                     move.w     -[A7], D0
  78. 000000CC  486D FA26                pea.l      [A5 - 0x5DA]
  79. 000000D0  7205                     moveq.l    D1, 0x05
  80. 000000D2  2F01                     move.l     -[A7], D1
  81. 000000D4  7000                     moveq.l    D0, 0x00
  82. 000000D6  2F00                     move.l     -[A7], D0
  83. 000000D8  A860                     syscall    WaitNextEvent
  84. 000000DA  548F                     addq.l     A7, 2
  85. 000000DC  6010                     bra        +0x12 /* 000000EE */
  86. label000000DE:
  87. 000000DE  558F                     subq.l     A7, 2
  88. 000000E0  70FF                     moveq.l    D0, 0xFFFFFFFF
  89. 000000E2  3F00                     move.w     -[A7], D0
  90. 000000E4  486D FA26                pea.l      [A5 - 0x5DA]
  91. 000000E8  A970                     syscall    GetNextEvent
  92. 000000EA  A9B4                     syscall    SystemTask
  93. 000000EC  548F                     addq.l     A7, 2
  94. label000000EE:
  95. 000000EE  7001                     moveq.l    D0, 0x01
  96. 000000F0  B06D FA26                cmp.w      D0, [A5 - 0x5DA]
  97. 000000F4  670A                     beq        +0xC /* 00000100 */
  98. 000000F6  4A2D FA1E                tst.b      [A5 - 0x5E2]
  99. 000000FA  6704                     beq        +0x6 /* 00000100 */
  100. 000000FC  4EAD 0072                jsr        [A5 + 0x72 /* export_10 */]
  101. label00000100:
  102. 00000100  302D FA26                move.w     D0, [A5 - 0x5DA]
  103. 00000104  6B00 016A                bmi        +0x16C /* 00000270 */
  104. 00000108  0C40 000B                cmpi.w     D0, 0xB
  105. 0000010C  6E00 0162                bgt        +0x164 /* 00000270 */
  106. 00000110  D040                     add.w      D0, D0
  107. 00000112  303B 0006                move.w     D0, [PC + D0.w + 0x6]
  108. 00000116  4EFB 0000                jmp        [PC + D0.w]
  109. 0000011A  0158                     bchg       [A0]+, D0
  110. 0000011C  001E 0158                ori.b      [A6]+, 0x58 /* 'X' */
  111. 00000120  00EC                     .incomplete
  112. 00000122  0158                     bchg       [A0]+, D0
  113. 00000124  00EC                     .incomplete
  114. 00000126  014E                     bchg       A6, D0
  115. 00000128  0142                     bchg       D2, D0
  116. 0000012A  0154                     bchg       [A4], D0
  117. 0000012C  0158                     bchg       [A0]+, D0
  118. 0000012E  0158                     bchg       [A0]+, D0
  119. 00000130  0158                     bchg       [A0]+, D0
  120. 00000132  6000 013C                bra        +0x13E /* 00000270 */
  121. 00000136  558F                     subq.l     A7, 2
  122. 00000138  2F2D FA30                move.l     -[A7], [A5 - 0x5D0]
  123. 0000013C  486E FFFC                pea.l      [A6 - 0x4]
  124. 00000140  A92C                     syscall    FindWindow
  125. 00000142  301F                     move.w     D0, [A7]+
  126. 00000144  6B00 012A                bmi        +0x12C /* 00000270 */
  127. 00000148  0C40 0006                cmpi.w     D0, 0x6
  128. 0000014C  6E00 0122                bgt        +0x124 /* 00000270 */
  129. 00000150  D040                     add.w      D0, D0
  130. 00000152  303B 0006                move.w     D0, [PC + D0.w + 0x6]
  131. 00000156  4EFB 0000                jmp        [PC + D0.w]
  132. 0000015A  0118                     btst       [A0]+, D0
  133. 0000015C  0014 005E                ori.b      [A4], 0x5E /* '^' */
  134. 00000160  006C 0090 0118           ori.w      [A4 + 0x118], 0x90
  135. 00000166  0118                     btst       [A0]+, D0
  136. 00000168  6000 0106                bra        +0x108 /* 00000270 */
  137. 0000016C  598F                     subq.l     A7, 4
  138. 0000016E  2F2D FA30                move.l     -[A7], [A5 - 0x5D0]
  139. 00000172  A93D                     syscall    MenuSelect
  140. 00000174  4EBA 0F38                jsr        [PC + 0xF38 /* 000010AE */]
  141. 00000178  70FF                     moveq.l    D0, 0xFFFFFFFF
  142. 0000017A  3F00                     move.w     -[A7], D0
  143. 0000017C  7200                     moveq.l    D1, 0x00
  144. 0000017E  3F01                     move.w     -[A7], D1
  145. 00000180  201F                     move.l     D0, [A7]+
  146. 00000182  A032                     syscall    FlushEvents
  147. 00000184  4A2D FA20                tst.b      [A5 - 0x5E0]
  148. 00000188  588F                     addq.l     A7, 4
  149. 0000018A  6700 00E4                beq        +0xE6 /* 00000270 */
  150. 0000018E  4A2D FA1E                tst.b      [A5 - 0x5E2]
  151. 00000192  6600 00DC                bne        +0xDE /* 00000270 */
  152. 00000196  7000                     moveq.l    D0, 0x00
  153. 00000198  102D FA1E                move.b     D0, [A5 - 0x5E2]
  154. 0000019C  4A80                     tst.l      D0
  155. 0000019E  660E                     bne        +0x10 /* 000001AE */
  156. 000001A0  426D FA3E                clr.w      [A5 - 0x5C2]
  157. 000001A4  426D FA40                clr.w      [A5 - 0x5C0]
  158. 000001A8  7000                     moveq.l    D0, 0x00
  159. 000001AA  2B40 FD12                move.l     [A5 - 0x2EE], D0
  160. label000001AE:
  161. 000001AE  4EBA 08BE                jsr        [PC + 0x8BE /* 00000A6E */]
  162. 000001B2  6000 00BC                bra        +0xBE /* 00000270 */
  163. 000001B6  486D FA26                pea.l      [A5 - 0x5DA]
  164. 000001BA  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  165. 000001BE  A9B3                     syscall    SystemClick
  166. 000001C0  6000 00AE                bra        +0xB0 /* 00000270 */
  167. 000001C4  598F                     subq.l     A7, 4
  168. 000001C6  A924                     syscall    FrontWindow
  169. 000001C8  202E FFFC                move.l     D0, [A6 - 0x4]
  170. 000001CC  B09F                     cmp.l      D0, [A7]+
  171. 000001CE  670A                     beq        +0xC /* 000001DA */
  172. 000001D0  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  173. 000001D4  A91F                     syscall    SelectWindow
  174. 000001D6  6000 0098                bra        +0x9A /* 00000270 */
  175. label000001DA:
  176. 000001DA  486D FA30                pea.l      [A5 - 0x5D0]
  177. 000001DE  A871                     syscall    GlobalToLocal
  178. 000001E0  4EAD 005A                jsr        [A5 + 0x5A /* export_7 */]
  179. 000001E4  6000 008A                bra        +0x8C /* 00000270 */
  180. 000001E8  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  181. 000001EC  2F2D FA30                move.l     -[A7], [A5 - 0x5D0]
  182. 000001F0  486D FE0A                pea.l      [A5 - 0x1F6]
  183. 000001F4  A925                     syscall    DragWindow
  184. 000001F6  70FF                     moveq.l    D0, 0xFFFFFFFF
  185. 000001F8  3F00                     move.w     -[A7], D0
  186. 000001FA  7200                     moveq.l    D1, 0x00
  187. 000001FC  3F01                     move.w     -[A7], D1
  188. 000001FE  201F                     move.l     D0, [A7]+
  189. 00000200  A032                     syscall    FlushEvents
  190. 00000202  606C                     bra        +0x6E /* 00000270 */
  191. 00000204  4A2D FA1E                tst.b      [A5 - 0x5E2]
  192. 00000208  303C 0100                move.w     D0, 0x100
  193. 0000020C  C06D FA34                and.w      D0, [A5 - 0x5CC]
  194. 00000210  675E                     beq        +0x60 /* 00000270 */
  195. 00000212  598F                     subq.l     A7, 4
  196. 00000214  203C 0000 00FF           move.l     D0, 0xFF
  197. 0000021A  C0AD FA28                and.l      D0, [A5 - 0x5D8]
  198. 0000021E  3F00                     move.w     -[A7], D0
  199. 00000220  A93E                     syscall    MenuKey
  200. 00000222  4EBA 0E8A                jsr        [PC + 0xE8A /* 000010AE */]
  201. 00000226  4A00                     tst.b      D0
  202. 00000228  588F                     addq.l     A7, 4
  203. 0000022A  6702                     beq        +0x4 /* 0000022E */
  204. 0000022C  7EFF                     moveq.l    D7, 0xFFFFFFFF
  205. label0000022E:
  206. 0000022E  4A2D FA20                tst.b      [A5 - 0x5E0]
  207. 00000232  673C                     beq        +0x3E /* 00000270 */
  208. 00000234  4A2D FA1E                tst.b      [A5 - 0x5E2]
  209. 00000238  6636                     bne        +0x38 /* 00000270 */
  210. 0000023A  4A2D FA1E                tst.b      [A5 - 0x5E2]
  211. 0000023E  660E                     bne        +0x10 /* 0000024E */
  212. 00000240  426D FA3E                clr.w      [A5 - 0x5C2]
  213. 00000244  426D FA40                clr.w      [A5 - 0x5C0]
  214. 00000248  7000                     moveq.l    D0, 0x00
  215. 0000024A  2B40 FD12                move.l     [A5 - 0x2EE], D0
  216. label0000024E:
  217. 0000024E  4EBA 081E                jsr        [PC + 0x81E /* 00000A6E */]
  218. 00000252  1B7C 0001 FA1E           move.b     [A5 - 0x5E2], 0x1
  219. 00000258  6016                     bra        +0x18 /* 00000270 */
  220. 0000025A  2F2D FA28                move.l     -[A7], [A5 - 0x5D8]
  221. 0000025E  4EBA 0332                jsr        [PC + 0x332 /* 00000592 */]
  222. 00000262  588F                     addq.l     A7, 4
  223. 00000264  600A                     bra        +0xC /* 00000270 */
  224. 00000266  4EBA 002E                jsr        [PC + 0x2E /* 00000296 */]
  225. 0000026A  6004                     bra        +0x6 /* 00000270 */
  226. 0000026C  4EBA 0028                jsr        [PC + 0x28 /* 00000296 */]
  227. label00000270:
  228. 00000270  7000                     moveq.l    D0, 0x00
  229. 00000272  102D F9F8                move.b     D0, [A5 - 0x608]
  230. 00000276  4A80                     tst.l      D0
  231. 00000278  6700 FE46                beq        -0x1B8 /* 000000C0 */
  232. 0000027C  2F2D FA0A                move.l     -[A7], [A5 - 0x5F6]
  233. 00000280  A92D                     syscall    CloseWindow
  234. 00000282  2F2D FD64                move.l     -[A7], [A5 - 0x29C]
  235. 00000286  A8D9                     syscall    DisposRgn/DisposeRgn
  236. 00000288  4EBA 0608                jsr        [PC + 0x608 /* 00000892 */]
  237. 0000028C  4CEE 1080 FFF4           movem.l    D7,A4, [A6 - 0xC]
  238. 00000292  4E5E                     unlink     A6
  239. 00000294  4E75                     rts
  240. fn00000296:
  241. 00000296  4E56 FF88                link       A6, -0x0078
  242. 0000029A  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  243. 0000029E  47EE FF90                lea.l      A3, [A6 - 0x70]
  244. 000002A2  49ED F8E4                lea.l      A4, [A5 - 0x71C]
  245. 000002A6  3D7C 0200 FFD6           move.w     [A6 - 0x2A], 0x200
  246. 000002AC  3D7C 00F0 FFD4           move.w     [A6 - 0x2C], 0xF0
  247. 000002B2  42AE FFD0                clr.l      [A6 - 0x30]
  248. 000002B6  7E05                     moveq.l    D7, 0x05
  249. 000002B8  7C0D                     moveq.l    D6, 0x0D
  250. 000002BA  3D7C 0014 FFE6           move.w     [A6 - 0x1A], 0x14
  251. 000002C0  3D7C 000F FFE4           move.w     [A6 - 0x1C], 0xF
  252. 000002C6  42AE FFE0                clr.l      [A6 - 0x20]
  253. 000002CA  3D7C 0064 FFEE           move.w     [A6 - 0x12], 0x64 /* 'd' */
  254. 000002D0  3D7C 005A FFEC           move.w     [A6 - 0x14], 0x5A /* 'Z' */
  255. 000002D6  3D7C 000A FFEA           move.w     [A6 - 0x16], 0xA /* '\n' */
  256. 000002DC  3D7C 0014 FFE8           move.w     [A6 - 0x18], 0x14
  257. 000002E2  3D7C 0200 FFF6           move.w     [A6 - 0xA], 0x200
  258. 000002E8  3D7C 0118 FFF4           move.w     [A6 - 0xC], 0x118
  259. 000002EE  42AE FFF0                clr.l      [A6 - 0x10]
  260. 000002F2  3D7C 0200 FFFE           move.w     [A6 - 0x2], 0x200
  261. 000002F8  3D7C 012E FFFC           move.w     [A6 - 0x4], 0x12E
  262. 000002FE  426E FFFA                clr.w      [A6 - 0x6]
  263. 00000302  3D7C 00F9 FFF8           move.w     [A6 - 0x8], 0xF9
  264. 00000308  2F2D FA0A                move.l     -[A7], [A5 - 0x5F6]
  265. 0000030C  A922                     syscall    BeginUpdate
  266. 0000030E  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  267. 00000312  2F28 0018                move.l     -[A7], [A0 + 0x18]
  268. 00000316  2F2D FD64                move.l     -[A7], [A5 - 0x29C]
  269. 0000031A  A8DC                     syscall    CopyRgn
  270. 0000031C  4A2D FA1E                tst.b      [A5 - 0x5E2]
  271. 00000320  6700 0242                beq        +0x244 /* 00000564 */
  272. 00000324  4A2D FA12                tst.b      [A5 - 0x5EE]
  273. 00000328  673E                     beq        +0x40 /* 00000368 */
  274. 0000032A  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  275. 0000032E  4868 0010                pea.l      [A0 + 0x10]
  276. 00000332  A8A3                     syscall    EraseRect
  277. 00000334  598F                     subq.l     A7, 4
  278. 00000336  3F3C 35E6                move.w     -[A7], 0x35E6
  279. 0000033A  A9BC                     syscall    GetPicture
  280. 0000033C  2B5F FD5E                move.l     [A5 - 0x2A2], [A7]+
  281. 00000340  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  282. 00000344  43EE FFD8                lea.l      A1, [A6 - 0x28]
  283. 00000348  41E8 0010                lea.l      A0, [A0 + 0x10]
  284. 0000034C  22D8                     move.l     [A1]+, [A0]+
  285. 0000034E  22D8                     move.l     [A1]+, [A0]+
  286. 00000350  206D FD5E                movea.l    A0, [A5 - 0x2A2]
  287. 00000354  2F08                     move.l     -[A7], A0
  288. 00000356  2050                     movea.l    A0, [A0]
  289. 00000358  4868 0002                pea.l      [A0 + 0x2]
  290. 0000035C  A8F6                     syscall    DrawPicture
  291. 0000035E  2F2D FD5E                move.l     -[A7], [A5 - 0x2A2]
  292. 00000362  A9A3                     syscall    ReleaseResource
  293. 00000364  6000 021C                bra        +0x21E /* 00000582 */
  294. label00000368:
  295. 00000368  4A2D FA24                tst.b      [A5 - 0x5DC]
  296. 0000036C  6708                     beq        +0xA /* 00000376 */
  297. 0000036E  486D F946                pea.l      [A5 - 0x6BA]
  298. 00000372  AA14                     syscall    RGBForeColor
  299. 00000374  6006                     bra        +0x8 /* 0000037C */
  300. label00000376:
  301. 00000376  486D FE6E                pea.l      [A5 - 0x192]
  302. 0000037A  A89D                     syscall    PenPat
  303. label0000037C:
  304. 0000037C  2F2D FD64                move.l     -[A7], [A5 - 0x29C]
  305. 00000380  4EAD 006A                jsr        [A5 + 0x6A /* export_9 */]
  306. 00000384  558F                     subq.l     A7, 2
  307. 00000386  486E FFF8                pea.l      [A6 - 0x8]
  308. 0000038A  2F2D FD64                move.l     -[A7], [A5 - 0x29C]
  309. 0000038E  A8E9                     syscall    RectInRgn
  310. 00000390  4A1F                     tst.b      [A7]+
  311. 00000392  588F                     addq.l     A7, 4
  312. 00000394  6700 01EC                beq        +0x1EE /* 00000582 */
  313. 00000398  4A2D FA24                tst.b      [A5 - 0x5DC]
  314. 0000039C  6708                     beq        +0xA /* 000003A6 */
  315. 0000039E  486D F946                pea.l      [A5 - 0x6BA]
  316. 000003A2  AA14                     syscall    RGBForeColor
  317. 000003A4  6006                     bra        +0x8 /* 000003AC */
  318. label000003A6:
  319. 000003A6  486D FE6E                pea.l      [A5 - 0x192]
  320. 000003AA  A89D                     syscall    PenPat
  321. label000003AC:
  322. 000003AC  7014                     moveq.l    D0, 0x14
  323. 000003AE  3F00                     move.w     -[A7], D0
  324. 000003B0  3F3C 011A                move.w     -[A7], 0x11A
  325. 000003B4  A893                     syscall    MoveTo
  326. 000003B6  2F0B                     move.l     -[A7], A3
  327. 000003B8  3F3C 03E7                move.w     -[A7], 0x3E7
  328. 000003BC  7001                     moveq.l    D0, 0x01
  329. 000003BE  3F00                     move.w     -[A7], D0
  330. 000003C0  4EBA 1776                jsr        [PC + 0x1776 /* 00001B38 */]
  331. 000003C4  2F0B                     move.l     -[A7], A3
  332. 000003C6  A884                     syscall    DrawString
  333. 000003C8  302D FA3E                move.w     D0, [A5 - 0x5C2]
  334. 000003CC  48C0                     ext.l      D0
  335. 000003CE  5280                     addq.l     D0, 1
  336. 000003D0  2F00                     move.l     -[A7], D0
  337. 000003D2  4EBA 03DA                jsr        [PC + 0x3DA /* 000007AE */]
  338. 000003D6  2F3C 011A 00FA           move.l     -[A7], 0x11A00FA
  339. 000003DC  A893                     syscall    MoveTo
  340. 000003DE  2F0B                     move.l     -[A7], A3
  341. 000003E0  3F3C 03E7                move.w     -[A7], 0x3E7
  342. 000003E4  7002                     moveq.l    D0, 0x02
  343. 000003E6  3F00                     move.w     -[A7], D0
  344. 000003E8  4EBA 174E                jsr        [PC + 0x174E /* 00001B38 */]
  345. 000003EC  2F0B                     move.l     -[A7], A3
  346. 000003EE  A884                     syscall    DrawString
  347. 000003F0  2F2D FD12                move.l     -[A7], [A5 - 0x2EE]
  348. 000003F4  2F0B                     move.l     -[A7], A3
  349. 000003F6  4EBA 1900                jsr        [PC + 0x1900 /* 00001CF8 */]
  350. 000003FA  2F0B                     move.l     -[A7], A3
  351. 000003FC  A884                     syscall    DrawString
  352. 000003FE  7014                     moveq.l    D0, 0x14
  353. 00000400  3F00                     move.w     -[A7], D0
  354. 00000402  3F3C 0129                move.w     -[A7], 0x129
  355. 00000406  A893                     syscall    MoveTo
  356. 00000408  2F0B                     move.l     -[A7], A3
  357. 0000040A  3F3C 03E7                move.w     -[A7], 0x3E7
  358. 0000040E  7003                     moveq.l    D0, 0x03
  359. 00000410  3F00                     move.w     -[A7], D0
  360. 00000412  4EBA 1724                jsr        [PC + 0x1724 /* 00001B38 */]
  361. 00000416  2F0B                     move.l     -[A7], A3
  362. 00000418  A884                     syscall    DrawString
  363. 0000041A  2F3C 0129 00FA           move.l     -[A7], 0x12900FA
  364. 00000420  A893                     syscall    MoveTo
  365. 00000422  2F0B                     move.l     -[A7], A3
  366. 00000424  3F3C 03E7                move.w     -[A7], 0x3E7
  367. 00000428  7004                     moveq.l    D0, 0x04
  368. 0000042A  3F00                     move.w     -[A7], D0
  369. 0000042C  4EBA 170A                jsr        [PC + 0x170A /* 00001B38 */]
  370. 00000430  2F0B                     move.l     -[A7], A3
  371. 00000432  A884                     syscall    DrawString
  372. 00000434  3F2D F8D0                move.w     -[A7], [A5 - 0x730]
  373. 00000438  3F2D F8D2                move.w     -[A7], [A5 - 0x72E]
  374. 0000043C  A893                     syscall    MoveTo
  375. 0000043E  302D FD62                move.w     D0, [A5 - 0x29E]
  376. 00000442  48C0                     ext.l      D0
  377. 00000444  2F00                     move.l     -[A7], D0
  378. 00000446  4EBA 0366                jsr        [PC + 0x366 /* 000007AE */]
  379. 0000044A  7005                     moveq.l    D0, 0x05
  380. 0000044C  3F00                     move.w     -[A7], D0
  381. 0000044E  3F3C 0107                move.w     -[A7], 0x107
  382. 00000452  A893                     syscall    MoveTo
  383. 00000454  7001                     moveq.l    D0, 0x01
  384. 00000456  3F00                     move.w     -[A7], D0
  385. 00000458  A888                     syscall    TextFace
  386. 0000045A  2F0B                     move.l     -[A7], A3
  387. 0000045C  3F3C 03E7                move.w     -[A7], 0x3E7
  388. 00000460  7005                     moveq.l    D0, 0x05
  389. 00000462  3F00                     move.w     -[A7], D0
  390. 00000464  4EBA 16D2                jsr        [PC + 0x16D2 /* 00001B38 */]
  391. 00000468  2F0B                     move.l     -[A7], A3
  392. 0000046A  A884                     syscall    DrawString
  393. 0000046C  7000                     moveq.l    D0, 0x00
  394. 0000046E  3F00                     move.w     -[A7], D0
  395. 00000470  A888                     syscall    TextFace
  396. 00000472  486D FD1E                pea.l      [A5 - 0x2E2]
  397. 00000476  A8A1                     syscall    FrameRect
  398. 00000478  4A2D FA16                tst.b      [A5 - 0x5EA]
  399. 0000047C  508F                     addq.l     A7, 8
  400. 0000047E  6700 009E                beq        +0xA0 /* 0000051E */
  401. 00000482  41EE FF88                lea.l      A0, [A6 - 0x78]
  402. 00000486  43ED FD16                lea.l      A1, [A5 - 0x2EA]
  403. 0000048A  20D9                     move.l     [A0]+, [A1]+
  404. 0000048C  20D9                     move.l     [A0]+, [A1]+
  405. 0000048E  302D FD1C                move.w     D0, [A5 - 0x2E4]
  406. 00000492  48C0                     ext.l      D0
  407. 00000494  322D FD18                move.w     D1, [A5 - 0x2E8]
  408. 00000498  48C1                     ext.l      D1
  409. 0000049A  9081                     sub.l      D0, D1
  410. 0000049C  322D F8E2                move.w     D1, [A5 - 0x71E]
  411. 000004A0  48C1                     ext.l      D1
  412. 000004A2  4EBA 14F4                jsr        [PC + 0x14F4 /* 00001998 */]
  413. 000004A6  3C00                     move.w     D6, D0
  414. 000004A8  7E00                     moveq.l    D7, 0x00
  415. 000004AA  6066                     bra        +0x68 /* 00000512 */
  416. label000004AC:
  417. 000004AC  4A2D FA24                tst.b      [A5 - 0x5DC]
  418. 000004B0  671E                     beq        +0x20 /* 000004D0 */
  419. 000004B2  2007                     move.l     D0, D7
  420. 000004B4  D040                     add.w      D0, D0
  421. 000004B6  3034 0000                move.w     D0, [A4 + D0.w]
  422. 000004BA  48C0                     ext.l      D0
  423. 000004BC  D080                     add.l      D0, D0
  424. 000004BE  2200                     move.l     D1, D0
  425. 000004C0  D281                     add.l      D1, D1
  426. 000004C2  D081                     add.l      D0, D1
  427. 000004C4  41ED F940                lea.l      A0, [A5 - 0x6C0]
  428. 000004C8  4870 0000                pea.l      [A0 + D0.w]
  429. 000004CC  AA14                     syscall    RGBForeColor
  430. 000004CE  6016                     bra        +0x18 /* 000004E6 */
  431. label000004D0:
  432. 000004D0  2007                     move.l     D0, D7
  433. 000004D2  D040                     add.w      D0, D0
  434. 000004D4  3234 0000                move.w     D1, [A4 + D0.w]
  435. 000004D8  48C1                     ext.l      D1
  436. 000004DA  E781                     asl        D1, 3
  437. 000004DC  202D FA3A                move.l     D0, [A5 - 0x5C6]
  438. 000004E0  D081                     add.l      D0, D1
  439. 000004E2  2F00                     move.l     -[A7], D0
  440. 000004E4  A89D                     syscall    PenPat
  441. label000004E6:
  442. 000004E6  3006                     move.w     D0, D6
  443. 000004E8  D06E FF8A                add.w      D0, [A6 - 0x76]
  444. 000004EC  3D40 FF8E                move.w     [A6 - 0x72], D0
  445. 000004F0  302D F8E2                move.w     D0, [A5 - 0x71E]
  446. 000004F4  48C0                     ext.l      D0
  447. 000004F6  5380                     subq.l     D0, 1
  448. 000004F8  B087                     cmp.l      D0, D7
  449. 000004FA  6606                     bne        +0x8 /* 00000502 */
  450. 000004FC  3D6D FD1C FF8E           move.w     [A6 - 0x72], [A5 - 0x2E4]
  451. label00000502:
  452. 00000502  486E FF88                pea.l      [A6 - 0x78]
  453. 00000506  A8A2                     syscall    PaintRect
  454. 00000508  3D6E FF8E FF8A           move.w     [A6 - 0x76], [A6 - 0x72]
  455. 0000050E  2007                     move.l     D0, D7
  456. 00000510  5287                     addq.l     D7, 1
  457. label00000512:
  458. 00000512  302D F8E2                move.w     D0, [A5 - 0x71E]
  459. 00000516  48C0                     ext.l      D0
  460. 00000518  B087                     cmp.l      D0, D7
  461. 0000051A  6E90                     bgt        -0x6E /* 000004AC */
  462. 0000051C  6064                     bra        +0x66 /* 00000582 */
  463. label0000051E:
  464. 0000051E  4A2D FA24                tst.b      [A5 - 0x5DC]
  465. 00000522  6708                     beq        +0xA /* 0000052C */
  466. 00000524  486D F94C                pea.l      [A5 - 0x6B4]
  467. 00000528  AA14                     syscall    RGBForeColor
  468. 0000052A  6006                     bra        +0x8 /* 00000532 */
  469. label0000052C:
  470. 0000052C  486D FE56                pea.l      [A5 - 0x1AA]
  471. 00000530  A89D                     syscall    PenPat
  472. label00000532:
  473. 00000532  486D FD16                pea.l      [A5 - 0x2EA]
  474. 00000536  A8A2                     syscall    PaintRect
  475. 00000538  7007                     moveq.l    D0, 0x07
  476. 0000053A  3F00                     move.w     -[A7], D0
  477. 0000053C  A89C                     syscall    PenMode
  478. 0000053E  486D FE66                pea.l      [A5 - 0x19A]
  479. 00000542  A89D                     syscall    PenPat
  480. 00000544  486D FD26                pea.l      [A5 - 0x2DA]
  481. 00000548  A8A2                     syscall    PaintRect
  482. 0000054A  4A2D FA24                tst.b      [A5 - 0x5DC]
  483. 0000054E  6706                     beq        +0x8 /* 00000556 */
  484. 00000550  486D F946                pea.l      [A5 - 0x6BA]
  485. 00000554  AA14                     syscall    RGBForeColor
  486. label00000556:
  487. 00000556  486D FE6E                pea.l      [A5 - 0x192]
  488. 0000055A  A89D                     syscall    PenPat
  489. 0000055C  7008                     moveq.l    D0, 0x08
  490. 0000055E  3F00                     move.w     -[A7], D0
  491. 00000560  A89C                     syscall    PenMode
  492. 00000562  601E                     bra        +0x20 /* 00000582 */
  493. label00000564:
  494. 00000564  598F                     subq.l     A7, 4
  495. 00000566  3F3C 2AB2                move.w     -[A7], 0x2AB2
  496. 0000056A  A9BC                     syscall    GetPicture
  497. 0000056C  2B57 FD5E                move.l     [A5 - 0x2A2], [A7]
  498. 00000570  206D FD5E                movea.l    A0, [A5 - 0x2A2]
  499. 00000574  2050                     movea.l    A0, [A0]
  500. 00000576  4868 0002                pea.l      [A0 + 0x2]
  501. 0000057A  A8F6                     syscall    DrawPicture
  502. 0000057C  2F2D FD5E                move.l     -[A7], [A5 - 0x2A2]
  503. 00000580  A9A3                     syscall    ReleaseResource
  504. label00000582:
  505. 00000582  2F2D FA0A                move.l     -[A7], [A5 - 0x5F6]
  506. 00000586  A923                     syscall    EndUpdate
  507. 00000588  4CEE 18C0 FF78           movem.l    D6,D7,A3,A4, [A6 - 0x88]
  508. 0000058E  4E5E                     unlink     A6
  509. 00000590  4E75                     rts
  510. fn00000592:
  511. 00000592  4E56 FFFC                link       A6, -0x0004
  512. 00000596  48E7 0700                movem.l    -[A7], D5,D6,D7
  513. 0000059A  2E2E 0008                move.l     D7, [A6 + 0x8]
  514. 0000059E  3D7C 0028 FFFE           move.w     [A6 - 0x2], 0x28 /* '(' */
  515. 000005A4  3D7C 0028 FFFC           move.w     [A6 - 0x4], 0x28 /* '(' */
  516. 000005AA  558F                     subq.l     A7, 2
  517. 000005AC  2F07                     move.l     -[A7], D7
  518. 000005AE  A86A                     syscall    HiWord
  519. 000005B0  301F                     move.w     D0, [A7]+
  520. 000005B2  48C0                     ext.l      D0
  521. 000005B4  2C00                     move.l     D6, D0
  522. 000005B6  558F                     subq.l     A7, 2
  523. 000005B8  2F07                     move.l     -[A7], D7
  524. 000005BA  A86B                     syscall    LoWord
  525. 000005BC  301F                     move.w     D0, [A7]+
  526. 000005BE  48C0                     ext.l      D0
  527. 000005C0  2A00                     move.l     D5, D0
  528. 000005C2  4A86                     tst.l      D6
  529. 000005C4  6712                     beq        +0x14 /* 000005D8 */
  530. 000005C6  558F                     subq.l     A7, 2
  531. 000005C8  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  532. 000005CC  2F07                     move.l     -[A7], D7
  533. 000005CE  4EBA 1722                jsr        [PC + 0x1722 /* 00001CF2 */]
  534. 000005D2  301F                     move.w     D0, [A7]+
  535. 000005D4  48C0                     ext.l      D0
  536. 000005D6  2C00                     move.l     D6, D0
  537. label000005D8:
  538. 000005D8  4CEE 00E0 FFF0           movem.l    D5,D6,D7, [A6 - 0x10]
  539. 000005DE  4E5E                     unlink     A6
  540. 000005E0  4E75                     rts
  541. export_1:
  542. fn000005E2:
  543. 000005E2  4E56 FEEC                link       A6, -0x0114
  544. 000005E6  48E7 1738                movem.l    -[A7], D3,D5,D6,D7,A2,A3,A4
  545. 000005EA  49ED F920                lea.l      A4, [A5 - 0x6E0]
  546. 000005EE  3C3C 2328                move.w     D6, 0x2328 /* '#(' */
  547. 000005F2  3D7C 0063 FFFE           move.w     [A6 - 0x2], 0x63 /* 'c' */
  548. 000005F8  598F                     subq.l     A7, 4
  549. 000005FA  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  550. 00000600  3F3C 7C9A                move.w     -[A7], 0x7C9A
  551. 00000604  A9A0                     syscall    GetResource
  552. 00000606  2D5F FEEC                move.l     [A6 - 0x114], [A7]+
  553. 0000060A  2F2D FD12                move.l     -[A7], [A5 - 0x2EE]
  554. 0000060E  486E FEF0                pea.l      [A6 - 0x110]
  555. 00000612  4EBA 16E4                jsr        [PC + 0x16E4 /* 00001CF8 */]
  556. 00000616  486E FEF0                pea.l      [A6 - 0x110]
  557. 0000061A  486D F506                pea.l      [A5 - 0xAFA]
  558. 0000061E  486D F508                pea.l      [A5 - 0xAF8]
  559. 00000622  486D F50A                pea.l      [A5 - 0xAF6]
  560. 00000626  A98B                     syscall    ParamText
  561. 00000628  7E00                     moveq.l    D7, 0x00
  562. 0000062A  760A                     moveq.l    D3, 0x0A
  563. label0000062C:
  564. 0000062C  2007                     move.l     D0, D7
  565. 0000062E  E580                     asl        D0, 2
  566. 00000630  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  567. 00000634  222D FD12                move.l     D1, [A5 - 0x2EE]
  568. 00000638  B2B0 0800                cmp.l      D1, [A0 + D0]
  569. 0000063C  6F06                     ble        +0x8 /* 00000644 */
  570. 0000063E  3006                     move.w     D0, D6
  571. 00000640  5246                     addq.w     D6, 1
  572. 00000642  6008                     bra        +0xA /* 0000064C */
  573. label00000644:
  574. 00000644  2007                     move.l     D0, D7
  575. 00000646  5287                     addq.l     D7, 1
  576. 00000648  B687                     cmp.l      D3, D7
  577. 0000064A  6EE0                     bgt        -0x1E /* 0000062C */
  578. label0000064C:
  579. 0000064C  598F                     subq.l     A7, 4
  580. 0000064E  3F06                     move.w     -[A7], D6
  581. 00000650  7000                     moveq.l    D0, 0x00
  582. 00000652  2F00                     move.l     -[A7], D0
  583. 00000654  72FF                     moveq.l    D1, 0xFFFFFFFF
  584. 00000656  2F01                     move.l     -[A7], D1
  585. 00000658  A97C                     syscall    GetNewDialog
  586. 0000065A  2657                     movea.l    A3, [A7]
  587. 0000065C  A981                     syscall    DrawDialog
  588. 0000065E  4A2D FA22                tst.b      [A5 - 0x5DE]
  589. 00000662  6712                     beq        +0x14 /* 00000676 */
  590. 00000664  558F                     subq.l     A7, 2
  591. 00000666  7000                     moveq.l    D0, 0x00
  592. 00000668  2F00                     move.l     -[A7], D0
  593. 0000066A  2F2E FEEC                move.l     -[A7], [A6 - 0x114]
  594. 0000066E  7200                     moveq.l    D1, 0x00
  595. 00000670  1F01                     move.b     -[A7], D1
  596. 00000672  A805                     syscall    SndPlay
  597. 00000674  548F                     addq.l     A7, 2
  598. label00000676:
  599. 00000676  2F2E FEEC                move.l     -[A7], [A6 - 0x114]
  600. 0000067A  A9A3                     syscall    ReleaseResource
  601. 0000067C  0C46 2329                cmpi.w     D6, 0x2329 /* '#)' */
  602. 00000680  664C                     bne        +0x4E /* 000006CE */
  603. 00000682  2F0B                     move.l     -[A7], A3
  604. 00000684  7003                     moveq.l    D0, 0x03
  605. 00000686  3F00                     move.w     -[A7], D0
  606. 00000688  486E FFF0                pea.l      [A6 - 0x10]
  607. 0000068C  486E FFF2                pea.l      [A6 - 0xE]
  608. 00000690  486E FFF6                pea.l      [A6 - 0xA]
  609. 00000694  A98D                     syscall    GetDialogItem/GetDItem
  610. 00000696  6036                     bra        +0x38 /* 000006CE */
  611. label00000698:
  612. 00000698  7000                     moveq.l    D0, 0x00
  613. 0000069A  2F00                     move.l     -[A7], D0
  614. 0000069C  486E FFFE                pea.l      [A6 - 0x2]
  615. 000006A0  A991                     syscall    ModalDialog
  616. 000006A2  7003                     moveq.l    D0, 0x03
  617. 000006A4  B06E FFFE                cmp.w      D0, [A6 - 0x2]
  618. 000006A8  6624                     bne        +0x26 /* 000006CE */
  619. 000006AA  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  620. 000006AE  2F0C                     move.l     -[A7], A4
  621. 000006B0  A990                     syscall    GetDialogItemText/GetIText
  622. 000006B2  7000                     moveq.l    D0, 0x00
  623. 000006B4  1014                     move.b     D0, [A4]
  624. 000006B6  0C00 0010                cmpi.b     D0, 0x10
  625. 000006BA  6312                     bls        +0x14 /* 000006CE */
  626. 000006BC  7001                     moveq.l    D0, 0x01
  627. 000006BE  3F00                     move.w     -[A7], D0
  628. 000006C0  A9C8                     syscall    SysBeep
  629. 000006C2  18BC 0010                move.b     [A4], 0x10
  630. 000006C6  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  631. 000006CA  2F0C                     move.l     -[A7], A4
  632. 000006CC  A98F                     syscall    SetDialogItemText/SetIText
  633. label000006CE:
  634. 000006CE  7001                     moveq.l    D0, 0x01
  635. 000006D0  B06E FFFE                cmp.w      D0, [A6 - 0x2]
  636. 000006D4  66C2                     bne        -0x3C /* 00000698 */
  637. 000006D6  0C46 2329                cmpi.w     D6, 0x2329 /* '#)' */
  638. 000006DA  6608                     bne        +0xA /* 000006E4 */
  639. 000006DC  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  640. 000006E0  2F0C                     move.l     -[A7], A4
  641. 000006E2  A990                     syscall    GetDialogItemText/GetIText
  642. label000006E4:
  643. 000006E4  2F0B                     move.l     -[A7], A3
  644. 000006E6  A983                     syscall    DisposeDialog
  645. 000006E8  0C46 2329                cmpi.w     D6, 0x2329 /* '#)' */
  646. 000006EC  6600 0090                bne        +0x92 /* 0000077E */
  647. 000006F0  7000                     moveq.l    D0, 0x00
  648. 000006F2  1014                     move.b     D0, [A4]
  649. 000006F4  0C00 0010                cmpi.b     D0, 0x10
  650. 000006F8  6304                     bls        +0x6 /* 000006FE */
  651. 000006FA  18BC 0010                move.b     [A4], 0x10
  652. label000006FE:
  653. 000006FE  7E00                     moveq.l    D7, 0x00
  654. 00000700  760A                     moveq.l    D3, 0x0A
  655. label00000702:
  656. 00000702  2007                     move.l     D0, D7
  657. 00000704  E580                     asl        D0, 2
  658. 00000706  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  659. 0000070A  222D FD12                move.l     D1, [A5 - 0x2EE]
  660. 0000070E  B2B0 0800                cmp.l      D1, [A0 + D0]
  661. 00000712  6E08                     bgt        +0xA /* 0000071C */
  662. 00000714  2007                     move.l     D0, D7
  663. 00000716  5287                     addq.l     D7, 1
  664. 00000718  B687                     cmp.l      D3, D7
  665. 0000071A  6EE6                     bgt        -0x18 /* 00000702 */
  666. label0000071C:
  667. 0000071C  7C09                     moveq.l    D6, 0x09
  668. 0000071E  6036                     bra        +0x38 /* 00000756 */
  669. label00000720:
  670. 00000720  2A06                     move.l     D5, D6
  671. 00000722  EB85                     asl        D5, 5
  672. 00000724  41ED FA22                lea.l      A0, [A5 - 0x5DE]
  673. 00000728  D1C5                     add.l      A0, D5
  674. 0000072A  43ED FA42                lea.l      A1, [A5 - 0x5BE]
  675. 0000072E  D3C5                     add.l      A1, D5
  676. 00000730  45ED FA22                lea.l      A2, [A5 - 0x5DE]
  677. 00000734  7000                     moveq.l    D0, 0x00
  678. 00000736  1032 5800                move.b     D0, [A2 + D5]
  679. 0000073A  5240                     addq.w     D0, 1
  680. 0000073C  48C0                     ext.l      D0
  681. 0000073E  A02E                     syscall    BlockMove/BlockMoveData
  682. 00000740  2A06                     move.l     D5, D6
  683. 00000742  E585                     asl        D5, 2
  684. 00000744  41ED FCBE                lea.l      A0, [A5 - 0x342]
  685. 00000748  43ED FCC2                lea.l      A1, [A5 - 0x33E]
  686. 0000074C  23B0 5800 5800           move.l     [A1 + D5], [A0 + D5]
  687. 00000752  2006                     move.l     D0, D6
  688. 00000754  5386                     subq.l     D6, 1
  689. label00000756:
  690. 00000756  BE86                     cmp.l      D7, D6
  691. 00000758  66C6                     bne        -0x38 /* 00000720 */
  692. 0000075A  204C                     movea.l    A0, A4
  693. 0000075C  2007                     move.l     D0, D7
  694. 0000075E  EB80                     asl        D0, 5
  695. 00000760  43ED FA42                lea.l      A1, [A5 - 0x5BE]
  696. 00000764  D3C0                     add.l      A1, D0
  697. 00000766  7000                     moveq.l    D0, 0x00
  698. 00000768  1014                     move.b     D0, [A4]
  699. 0000076A  5240                     addq.w     D0, 1
  700. 0000076C  48C0                     ext.l      D0
  701. 0000076E  A02E                     syscall    BlockMove/BlockMoveData
  702. 00000770  2007                     move.l     D0, D7
  703. 00000772  E580                     asl        D0, 2
  704. 00000774  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  705. 00000778  21AD FD12 0800           move.l     [A0 + D0], [A5 - 0x2EE]
  706. label0000077E:
  707. 0000077E  422D FA1E                clr.b      [A5 - 0x5E2]
  708. 00000782  422D FA20                clr.b      [A5 - 0x5E0]
  709. 00000786  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  710. 0000078A  4868 0010                pea.l      [A0 + 0x10]
  711. 0000078E  A8A3                     syscall    EraseRect
  712. 00000790  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  713. 00000794  4868 0010                pea.l      [A0 + 0x10]
  714. 00000798  A928                     syscall    InvalRect
  715. 0000079A  7000                     moveq.l    D0, 0x00
  716. 0000079C  2F00                     move.l     -[A7], D0
  717. 0000079E  4EBA 0C4A                jsr        [PC + 0xC4A /* 000013EA */]
  718. 000007A2  588F                     addq.l     A7, 4
  719. 000007A4  4CEE 1CE8 FED0           movem.l    D3,D5,D6,D7,A2,A3,A4, [A6 - 0x130]
  720. 000007AA  4E5E                     unlink     A6
  721. 000007AC  4E75                     rts
  722. fn000007AE:
  723. 000007AE  4E56 FF00                link       A6, -0x0100
  724. 000007B2  2F0C                     move.l     -[A7], A4
  725. 000007B4  49EE FF00                lea.l      A4, [A6 - 0x100]
  726. 000007B8  302E 000A                move.w     D0, [A6 + 0xA]
  727. 000007BC  48C0                     ext.l      D0
  728. 000007BE  2F00                     move.l     -[A7], D0
  729. 000007C0  2F0C                     move.l     -[A7], A4
  730. 000007C2  4EBA 1534                jsr        [PC + 0x1534 /* 00001CF8 */]
  731. 000007C6  2F0C                     move.l     -[A7], A4
  732. 000007C8  A884                     syscall    DrawString
  733. 000007CA  286E FEFC                movea.l    A4, [A6 - 0x104]
  734. 000007CE  4E5E                     unlink     A6
  735. 000007D0  4E75                     rts
  736. fn000007D2:
  737. 000007D2  4E56 FF00                link       A6, -0x0100
  738. 000007D6  2F0C                     move.l     -[A7], A4
  739. 000007D8  49EE FF00                lea.l      A4, [A6 - 0x100]
  740. 000007DC  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  741. 000007E0  2F0C                     move.l     -[A7], A4
  742. 000007E2  4EBA 1514                jsr        [PC + 0x1514 /* 00001CF8 */]
  743. 000007E6  2F0C                     move.l     -[A7], A4
  744. 000007E8  A884                     syscall    DrawString
  745. 000007EA  286E FEFC                movea.l    A4, [A6 - 0x104]
  746. 000007EE  4E5E                     unlink     A6
  747. 000007F0  4E75                     rts
  748. fn000007F2:
  749. 000007F2  4E56 FEF8                link       A6, -0x0108
  750. 000007F6  48E7 1118                movem.l    -[A7], D3,D7,A3,A4
  751. 000007FA  47EE FEFA                lea.l      A3, [A6 - 0x106]
  752. 000007FE  49EE FFFA                lea.l      A4, [A6 - 0x6]
  753. 00000802  7E00                     moveq.l    D7, 0x00
  754. 00000804  760A                     moveq.l    D3, 0x0A
  755. label00000806:
  756. 00000806  2007                     move.l     D0, D7
  757. 00000808  EB80                     asl        D0, 5
  758. 0000080A  41ED FA42                lea.l      A0, [A5 - 0x5BE]
  759. 0000080E  4230 0800                clr.b      [A0 + D0]
  760. 00000812  2007                     move.l     D0, D7
  761. 00000814  E580                     asl        D0, 2
  762. 00000816  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  763. 0000081A  7200                     moveq.l    D1, 0x00
  764. 0000081C  2181 0800                move.l     [A0 + D0], D1
  765. 00000820  2007                     move.l     D0, D7
  766. 00000822  5287                     addq.l     D7, 1
  767. 00000824  B687                     cmp.l      D3, D7
  768. 00000826  6EDE                     bgt        -0x20 /* 00000806 */
  769. 00000828  558F                     subq.l     A7, 2
  770. 0000082A  2F0B                     move.l     -[A7], A3
  771. 0000082C  486E FFFE                pea.l      [A6 - 0x2]
  772. 00000830  4EBA 12E2                jsr        [PC + 0x12E2 /* 00001B14 */]
  773. 00000834  558F                     subq.l     A7, 2
  774. 00000836  4878 0910                push.l     0x910
  775. 0000083A  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  776. 0000083E  486E FEF8                pea.l      [A6 - 0x108]
  777. 00000842  4EBA 1238                jsr        [PC + 0x1238 /* 00001A7C */]
  778. 00000846  4A5F                     tst.w      [A7]+
  779. 00000848  548F                     addq.l     A7, 2
  780. 0000084A  6636                     bne        +0x38 /* 00000882 */
  781. 0000084C  2D7C 0000 02D0 FFFA      move.l     [A6 - 0x6], 0x2D0
  782. 00000854  558F                     subq.l     A7, 2
  783. 00000856  3F2E FEF8                move.w     -[A7], [A6 - 0x108]
  784. 0000085A  2F0C                     move.l     -[A7], A4
  785. 0000085C  486D FA42                pea.l      [A5 - 0x5BE]
  786. 00000860  4EBA 126A                jsr        [PC + 0x126A /* 00001ACC */]
  787. 00000864  4A5F                     tst.w      [A7]+
  788. 00000866  6606                     bne        +0x8 /* 0000086E */
  789. 00000868  422D FA0E                clr.b      [A5 - 0x5F2]
  790. 0000086C  6006                     bra        +0x8 /* 00000874 */
  791. label0000086E:
  792. 0000086E  1B7C 0001 FA0E           move.b     [A5 - 0x5F2], 0x1
  793. label00000874:
  794. 00000874  558F                     subq.l     A7, 2
  795. 00000876  3F2E FEF8                move.w     -[A7], [A6 - 0x108]
  796. 0000087A  4EBA 1236                jsr        [PC + 0x1236 /* 00001AB2 */]
  797. 0000087E  548F                     addq.l     A7, 2
  798. 00000880  6006                     bra        +0x8 /* 00000888 */
  799. label00000882:
  800. 00000882  1B7C 0001 FA0E           move.b     [A5 - 0x5F2], 0x1
  801. label00000888:
  802. 00000888  4CEE 1888 FEE8           movem.l    D3,D7,A3,A4, [A6 - 0x118]
  803. 0000088E  4E5E                     unlink     A6
  804. 00000890  4E75                     rts
  805. fn00000892:
  806. 00000892  4E56 FEF8                link       A6, -0x0108
  807. 00000896  48E7 0018                movem.l    -[A7], A3,A4
  808. 0000089A  47EE FEFA                lea.l      A3, [A6 - 0x106]
  809. 0000089E  49EE FFFA                lea.l      A4, [A6 - 0x6]
  810. 000008A2  558F                     subq.l     A7, 2
  811. 000008A4  2F0B                     move.l     -[A7], A3
  812. 000008A6  486E FFFE                pea.l      [A6 - 0x2]
  813. 000008AA  4EBA 1268                jsr        [PC + 0x1268 /* 00001B14 */]
  814. 000008AE  558F                     subq.l     A7, 2
  815. 000008B0  4878 0910                push.l     0x910
  816. 000008B4  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  817. 000008B8  486E FEF8                pea.l      [A6 - 0x108]
  818. 000008BC  4EBA 11BE                jsr        [PC + 0x11BE /* 00001A7C */]
  819. 000008C0  4A5F                     tst.w      [A7]+
  820. 000008C2  548F                     addq.l     A7, 2
  821. 000008C4  6636                     bne        +0x38 /* 000008FC */
  822. 000008C6  2D7C 0000 02D0 FFFA      move.l     [A6 - 0x6], 0x2D0
  823. 000008CE  558F                     subq.l     A7, 2
  824. 000008D0  3F2E FEF8                move.w     -[A7], [A6 - 0x108]
  825. 000008D4  2F0C                     move.l     -[A7], A4
  826. 000008D6  486D FA42                pea.l      [A5 - 0x5BE]
  827. 000008DA  4EBA 11F4                jsr        [PC + 0x11F4 /* 00001AD0 */]
  828. 000008DE  4A5F                     tst.w      [A7]+
  829. 000008E0  6606                     bne        +0x8 /* 000008E8 */
  830. 000008E2  422D FA0E                clr.b      [A5 - 0x5F2]
  831. 000008E6  6006                     bra        +0x8 /* 000008EE */
  832. label000008E8:
  833. 000008E8  1B7C 0001 FA0E           move.b     [A5 - 0x5F2], 0x1
  834. label000008EE:
  835. 000008EE  558F                     subq.l     A7, 2
  836. 000008F0  3F2E FEF8                move.w     -[A7], [A6 - 0x108]
  837. 000008F4  4EBA 11BC                jsr        [PC + 0x11BC /* 00001AB2 */]
  838. 000008F8  548F                     addq.l     A7, 2
  839. 000008FA  6006                     bra        +0x8 /* 00000902 */
  840. label000008FC:
  841. 000008FC  1B7C 0001 FA0E           move.b     [A5 - 0x5F2], 0x1
  842. label00000902:
  843. 00000902  4CEE 1800 FEF0           movem.l    A3,A4, [A6 - 0x110]
  844. 00000908  4E5E                     unlink     A6
  845. 0000090A  4E75                     rts
  846. fn0000090C:
  847. 0000090C  4E56 FFEE                link       A6, -0x0012
  848. 00000910  2F0C                     move.l     -[A7], A4
  849. 00000912  3D7C 0063 FFEE           move.w     [A6 - 0x12], 0x63 /* 'c' */
  850. 00000918  3D7C 00D0 FFF6           move.w     [A6 - 0xA], 0xD0
  851. 0000091E  3D7C 00C8 FFF4           move.w     [A6 - 0xC], 0xC8
  852. 00000924  3D7C 0008 FFF2           move.w     [A6 - 0xE], 0x8
  853. 0000092A  3D7C 0028 FFF0           move.w     [A6 - 0x10], 0x28 /* '(' */
  854. 00000930  3D7C 0150 FFFE           move.w     [A6 - 0x2], 0x150
  855. 00000936  3D7C 00C8 FFFC           move.w     [A6 - 0x4], 0xC8
  856. 0000093C  3D7C 00D8 FFFA           move.w     [A6 - 0x6], 0xD8
  857. 00000942  3D7C 0028 FFF8           move.w     [A6 - 0x8], 0x28 /* '(' */
  858. 00000948  422D FA0E                clr.b      [A5 - 0x5F2]
  859. 0000094C  4A2D FA0E                tst.b      [A5 - 0x5F2]
  860. 00000950  6710                     beq        +0x12 /* 00000962 */
  861. 00000952  558F                     subq.l     A7, 2
  862. 00000954  3F3C 2694                move.w     -[A7], 0x2694
  863. 00000958  7000                     moveq.l    D0, 0x00
  864. 0000095A  2F00                     move.l     -[A7], D0
  865. 0000095C  A985                     syscall    Alert
  866. 0000095E  548F                     addq.l     A7, 2
  867. 00000960  6054                     bra        +0x56 /* 000009B6 */
  868. label00000962:
  869. 00000962  598F                     subq.l     A7, 4
  870. 00000964  3F3C 47A9                move.w     -[A7], 0x47A9
  871. 00000968  7000                     moveq.l    D0, 0x00
  872. 0000096A  2F00                     move.l     -[A7], D0
  873. 0000096C  72FF                     moveq.l    D1, 0xFFFFFFFF
  874. 0000096E  2F01                     move.l     -[A7], D1
  875. 00000970  A97C                     syscall    GetNewDialog
  876. 00000972  2857                     movea.l    A4, [A7]
  877. 00000974  7005                     moveq.l    D0, 0x05
  878. 00000976  3F00                     move.w     -[A7], D0
  879. 00000978  7200                     moveq.l    D1, 0x00
  880. 0000097A  3F01                     move.w     -[A7], D1
  881. 0000097C  486D 0032                pea.l      [A5 + 0x32 /* export_2 */]
  882. 00000980  486E FFF0                pea.l      [A6 - 0x10]
  883. 00000984  A98E                     syscall    SetDialogItem/SetDItem
  884. 00000986  2F0C                     move.l     -[A7], A4
  885. 00000988  7006                     moveq.l    D0, 0x06
  886. 0000098A  3F00                     move.w     -[A7], D0
  887. 0000098C  7200                     moveq.l    D1, 0x00
  888. 0000098E  3F01                     move.w     -[A7], D1
  889. 00000990  486D 003A                pea.l      [A5 + 0x3A /* export_3 */]
  890. 00000994  486E FFF8                pea.l      [A6 - 0x8]
  891. 00000998  A98E                     syscall    SetDialogItem/SetDItem
  892. 0000099A  2F0C                     move.l     -[A7], A4
  893. 0000099C  A915                     syscall    ShowWindow
  894. 0000099E  600A                     bra        +0xC /* 000009AA */
  895. label000009A0:
  896. 000009A0  7000                     moveq.l    D0, 0x00
  897. 000009A2  2F00                     move.l     -[A7], D0
  898. 000009A4  486E FFEE                pea.l      [A6 - 0x12]
  899. 000009A8  A991                     syscall    ModalDialog
  900. label000009AA:
  901. 000009AA  7001                     moveq.l    D0, 0x01
  902. 000009AC  B06E FFEE                cmp.w      D0, [A6 - 0x12]
  903. 000009B0  66EE                     bne        -0x10 /* 000009A0 */
  904. 000009B2  2F0C                     move.l     -[A7], A4
  905. 000009B4  A983                     syscall    DisposeDialog
  906. label000009B6:
  907. 000009B6  286E FFEA                movea.l    A4, [A6 - 0x16]
  908. 000009BA  4E5E                     unlink     A6
  909. 000009BC  4E75                     rts
  910. export_2:
  911. 000009BE  4E56 FFF8                link       A6, -0x0008
  912. 000009C2  48E7 1300                movem.l    -[A7], D3,D6,D7
  913. 000009C6  7C35                     moveq.l    D6, 0x35
  914. 000009C8  3D7C 00D0 FFFE           move.w     [A6 - 0x2], 0xD0
  915. 000009CE  3D7C 00C8 FFFC           move.w     [A6 - 0x4], 0xC8
  916. 000009D4  3D7C 0008 FFFA           move.w     [A6 - 0x6], 0x8
  917. 000009DA  3D7C 0028 FFF8           move.w     [A6 - 0x8], 0x28 /* '(' */
  918. 000009E0  7E00                     moveq.l    D7, 0x00
  919. label000009E2:
  920. 000009E2  700A                     moveq.l    D0, 0x0A
  921. 000009E4  3F00                     move.w     -[A7], D0
  922. 000009E6  3F06                     move.w     -[A7], D6
  923. 000009E8  A893                     syscall    MoveTo
  924. 000009EA  2007                     move.l     D0, D7
  925. 000009EC  EB80                     asl        D0, 5
  926. 000009EE  41ED FA42                lea.l      A0, [A5 - 0x5BE]
  927. 000009F2  4870 0800                pea.l      [A0 + D0]
  928. 000009F6  A884                     syscall    DrawString
  929. 000009F8  0646 000D                addi.w     D6, 0xD /* '\r' */
  930. 000009FC  2007                     move.l     D0, D7
  931. 000009FE  5287                     addq.l     D7, 1
  932. 00000A00  700A                     moveq.l    D0, 0x0A
  933. 00000A02  B087                     cmp.l      D0, D7
  934. 00000A04  6EDC                     bgt        -0x22 /* 000009E2 */
  935. 00000A06  4CEE 00C8 FFEC           movem.l    D3,D6,D7, [A6 - 0x14]
  936. 00000A0C  4E5E                     unlink     A6
  937. 00000A0E  205F                     movea.l    A0, [A7]+
  938. 00000A10  5C4F                     addq.w     A7, 6
  939. 00000A12  4ED0                     jmp        [A0]
  940. export_3:
  941. 00000A14  4E56 FFF8                link       A6, -0x0008
  942. 00000A18  48E7 1300                movem.l    -[A7], D3,D6,D7
  943. 00000A1C  3D7C 0150 FFFE           move.w     [A6 - 0x2], 0x150
  944. 00000A22  3D7C 00C8 FFFC           move.w     [A6 - 0x4], 0xC8
  945. 00000A28  3D7C 00D8 FFFA           move.w     [A6 - 0x6], 0xD8
  946. 00000A2E  3D7C 0028 FFF8           move.w     [A6 - 0x8], 0x28 /* '(' */
  947. 00000A34  7C35                     moveq.l    D6, 0x35
  948. 00000A36  7E00                     moveq.l    D7, 0x00
  949. label00000A38:
  950. 00000A38  3F3C 00DC                move.w     -[A7], 0xDC
  951. 00000A3C  3F06                     move.w     -[A7], D6
  952. 00000A3E  A893                     syscall    MoveTo
  953. 00000A40  2007                     move.l     D0, D7
  954. 00000A42  E580                     asl        D0, 2
  955. 00000A44  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  956. 00000A48  2F30 0800                move.l     -[A7], [A0 + D0]
  957. 00000A4C  4EBA FD84                jsr        [PC - 0x27C /* 000007D2 */]
  958. 00000A50  0646 000D                addi.w     D6, 0xD /* '\r' */
  959. 00000A54  588F                     addq.l     A7, 4
  960. 00000A56  2007                     move.l     D0, D7
  961. 00000A58  5287                     addq.l     D7, 1
  962. 00000A5A  700A                     moveq.l    D0, 0x0A
  963. 00000A5C  B087                     cmp.l      D0, D7
  964. 00000A5E  6ED8                     bgt        -0x26 /* 00000A38 */
  965. 00000A60  4CEE 00C8 FFEC           movem.l    D3,D6,D7, [A6 - 0x14]
  966. 00000A66  4E5E                     unlink     A6
  967. 00000A68  205F                     movea.l    A0, [A7]+
  968. 00000A6A  5C4F                     addq.w     A7, 6
  969. 00000A6C  4ED0                     jmp        [A0]
  970. fn00000A6E:
  971. 00000A6E  4E56 FFF2                link       A6, -0x000E
  972. 00000A72  48E7 1F18                movem.l    -[A7], D3,D4,D5,D6,D7,A3,A4
  973. 00000A76  47ED F8E4                lea.l      A3, [A5 - 0x71C]
  974. 00000A7A  49ED F50E                lea.l      A4, [A5 - 0xAF2]
  975. 00000A7E  1B7C 0001 FA1A           move.b     [A5 - 0x5E6], 0x1
  976. 00000A84  4A6D FA3E                tst.w      [A5 - 0x5C2]
  977. 00000A88  664C                     bne        +0x4E /* 00000AD6 */
  978. 00000A8A  4A2D FA22                tst.b      [A5 - 0x5DE]
  979. 00000A8E  6746                     beq        +0x48 /* 00000AD6 */
  980. 00000A90  598F                     subq.l     A7, 4
  981. 00000A92  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  982. 00000A98  3F3C 4CE5                move.w     -[A7], 0x4CE5
  983. 00000A9C  A9A0                     syscall    GetResource
  984. 00000A9E  2D5F FFF2                move.l     [A6 - 0xE], [A7]+
  985. 00000AA2  7E00                     moveq.l    D7, 0x00
  986. label00000AA4:
  987. 00000AA4  558F                     subq.l     A7, 2
  988. 00000AA6  7000                     moveq.l    D0, 0x00
  989. 00000AA8  2F00                     move.l     -[A7], D0
  990. 00000AAA  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  991. 00000AAE  7200                     moveq.l    D1, 0x00
  992. 00000AB0  1F01                     move.b     -[A7], D1
  993. 00000AB2  A805                     syscall    SndPlay
  994. 00000AB4  548F                     addq.l     A7, 2
  995. 00000AB6  2007                     move.l     D0, D7
  996. 00000AB8  5287                     addq.l     D7, 1
  997. 00000ABA  7003                     moveq.l    D0, 0x03
  998. 00000ABC  B087                     cmp.l      D0, D7
  999. 00000ABE  6EE4                     bgt        -0x1A /* 00000AA4 */
  1000. 00000AC0  2F2E FFF2                move.l     -[A7], [A6 - 0xE]
  1001. 00000AC4  A9A3                     syscall    ReleaseResource
  1002. 00000AC6  3B7C 0010 FD62           move.w     [A5 - 0x29E], 0x10
  1003. 00000ACC  4A2D FA24                tst.b      [A5 - 0x5DC]
  1004. 00000AD0  6704                     beq        +0x6 /* 00000AD6 */
  1005. 00000AD2  4EBA 02CC                jsr        [PC + 0x2CC /* 00000DA0 */]
  1006. label00000AD6:
  1007. 00000AD6  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1008. 00000ADA  4868 0010                pea.l      [A0 + 0x10]
  1009. 00000ADE  A8A3                     syscall    EraseRect
  1010. 00000AE0  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1011. 00000AE4  4868 0010                pea.l      [A0 + 0x10]
  1012. 00000AE8  A928                     syscall    InvalRect
  1013. 00000AEA  302D FA3E                move.w     D0, [A5 - 0x5C2]
  1014. 00000AEE  48C0                     ext.l      D0
  1015. 00000AF0  81FC 0007                divs.w     D0, 0x7
  1016. 00000AF4  5640                     addq.w     D0, 3
  1017. 00000AF6  3B40 FD40                move.w     [A5 - 0x2C0], D0
  1018. 00000AFA  7005                     moveq.l    D0, 0x05
  1019. 00000AFC  B06D FD40                cmp.w      D0, [A5 - 0x2C0]
  1020. 00000B00  6C06                     bge        +0x8 /* 00000B08 */
  1021. 00000B02  3B7C 0005 FD40           move.w     [A5 - 0x2C0], 0x5
  1022. label00000B08:
  1023. 00000B08  302D FA3E                move.w     D0, [A5 - 0x5C2]
  1024. 00000B0C  48C0                     ext.l      D0
  1025. 00000B0E  81FC 0004                divs.w     D0, 0x4
  1026. 00000B12  5640                     addq.w     D0, 3
  1027. 00000B14  3B40 FD3E                move.w     [A5 - 0x2C2], D0
  1028. 00000B18  7008                     moveq.l    D0, 0x08
  1029. 00000B1A  B06D FD3E                cmp.w      D0, [A5 - 0x2C2]
  1030. 00000B1E  6C06                     bge        +0x8 /* 00000B26 */
  1031. 00000B20  3B7C 0008 FD3E           move.w     [A5 - 0x2C2], 0x8
  1032. label00000B26:
  1033. 00000B26  302D FA3E                move.w     D0, [A5 - 0x5C2]
  1034. 00000B2A  48C0                     ext.l      D0
  1035. 00000B2C  81FC 0005                divs.w     D0, 0x5
  1036. 00000B30  5840                     addq.w     D0, 4
  1037. 00000B32  3B40 F8E2                move.w     [A5 - 0x71E], D0
  1038. 00000B36  701E                     moveq.l    D0, 0x1E
  1039. 00000B38  B06D F8E2                cmp.w      D0, [A5 - 0x71E]
  1040. 00000B3C  6E06                     bgt        +0x8 /* 00000B44 */
  1041. 00000B3E  3B7C 001E F8E2           move.w     [A5 - 0x71E], 0x1E
  1042. label00000B44:
  1043. 00000B44  7E00                     moveq.l    D7, 0x00
  1044. 00000B46  761E                     moveq.l    D3, 0x1E
  1045. label00000B48:
  1046. 00000B48  2007                     move.l     D0, D7
  1047. 00000B4A  D040                     add.w      D0, D0
  1048. 00000B4C  3787 0000                move.w     [A3 + D0.w], D7
  1049. 00000B50  2007                     move.l     D0, D7
  1050. 00000B52  5287                     addq.l     D7, 1
  1051. 00000B54  B687                     cmp.l      D3, D7
  1052. 00000B56  6EF0                     bgt        -0xE /* 00000B48 */
  1053. 00000B58  7E00                     moveq.l    D7, 0x00
  1054. label00000B5A:
  1055. 00000B5A  701E                     moveq.l    D0, 0x1E
  1056. 00000B5C  2F00                     move.l     -[A7], D0
  1057. 00000B5E  4EAD 0062                jsr        [A5 + 0x62 /* export_8 */]
  1058. 00000B62  3C00                     move.w     D6, D0
  1059. 00000B64  701E                     moveq.l    D0, 0x1E
  1060. 00000B66  2F00                     move.l     -[A7], D0
  1061. 00000B68  4EAD 0062                jsr        [A5 + 0x62 /* export_8 */]
  1062. 00000B6C  3A00                     move.w     D5, D0
  1063. 00000B6E  508F                     addq.l     A7, 8
  1064. 00000B70  BA46                     cmp.w      D5, D6
  1065. 00000B72  67E6                     beq        -0x18 /* 00000B5A */
  1066. 00000B74  3006                     move.w     D0, D6
  1067. 00000B76  48C0                     ext.l      D0
  1068. 00000B78  D080                     add.l      D0, D0
  1069. 00000B7A  3D40 FFF4                move.w     [A6 - 0xC], D0
  1070. 00000B7E  3D73 0000 FFF2           move.w     [A6 - 0xE], [A3 + D0.w]
  1071. 00000B84  3805                     move.w     D4, D5
  1072. 00000B86  48C4                     ext.l      D4
  1073. 00000B88  D884                     add.l      D4, D4
  1074. 00000B8A  302E FFF4                move.w     D0, [A6 - 0xC]
  1075. 00000B8E  37B3 4000 0000           move.w     [A3 + D0.w], [A3 + D4.w]
  1076. 00000B94  37AE FFF2 4000           move.w     [A3 + D4.w], [A6 - 0xE]
  1077. 00000B9A  2007                     move.l     D0, D7
  1078. 00000B9C  5287                     addq.l     D7, 1
  1079. 00000B9E  0C87 0000 05DC           cmpi.l     D7, 0x5DC
  1080. 00000BA4  6DB4                     blt        -0x4A /* 00000B5A */
  1081. 00000BA6  303C 00F0                move.w     D0, 0xF0
  1082. 00000BAA  48C0                     ext.l      D0
  1083. 00000BAC  81ED FD40                divs.w     D0, [A5 - 0x2C0]
  1084. 00000BB0  3D40 FFFE                move.w     [A6 - 0x2], D0
  1085. 00000BB4  303C 01FA                move.w     D0, 0x1FA
  1086. 00000BB8  48C0                     ext.l      D0
  1087. 00000BBA  81ED FD3E                divs.w     D0, [A5 - 0x2C2]
  1088. 00000BBE  3800                     move.w     D4, D0
  1089. 00000BC0  7C00                     moveq.l    D6, 0x00
  1090. 00000BC2  6000 0122                bra        +0x124 /* 00000CE6 */
  1091. label00000BC6:
  1092. 00000BC6  486E FFF6                pea.l      [A6 - 0xA]
  1093. 00000BCA  7004                     moveq.l    D0, 0x04
  1094. 00000BCC  3F00                     move.w     -[A7], D0
  1095. 00000BCE  322E FFFE                move.w     D1, [A6 - 0x2]
  1096. 00000BD2  48C1                     ext.l      D1
  1097. 00000BD4  2006                     move.l     D0, D6
  1098. 00000BD6  4EBA 0D98                jsr        [PC + 0xD98 /* 00001970 */]
  1099. 00000BDA  5840                     addq.w     D0, 4
  1100. 00000BDC  3F00                     move.w     -[A7], D0
  1101. 00000BDE  3F04                     move.w     -[A7], D4
  1102. 00000BE0  302E FFFE                move.w     D0, [A6 - 0x2]
  1103. 00000BE4  48C0                     ext.l      D0
  1104. 00000BE6  2200                     move.l     D1, D0
  1105. 00000BE8  2006                     move.l     D0, D6
  1106. 00000BEA  4EBA 0D84                jsr        [PC + 0xD84 /* 00001970 */]
  1107. 00000BEE  322E FFFE                move.w     D1, [A6 - 0x2]
  1108. 00000BF2  D240                     add.w      D1, D0
  1109. 00000BF4  3F01                     move.w     -[A7], D1
  1110. 00000BF6  A8A7                     syscall    SetRect
  1111. 00000BF8  7E00                     moveq.l    D7, 0x00
  1112. 00000BFA  6000 00DA                bra        +0xDC /* 00000CD6 */
  1113. label00000BFE:
  1114. 00000BFE  4A87                     tst.l      D7
  1115. 00000C00  670C                     beq        +0xE /* 00000C0E */
  1116. 00000C02  486E FFF6                pea.l      [A6 - 0xA]
  1117. 00000C06  3F04                     move.w     -[A7], D4
  1118. 00000C08  7000                     moveq.l    D0, 0x00
  1119. 00000C0A  3F00                     move.w     -[A7], D0
  1120. 00000C0C  A8A8                     syscall    OffsetRect
  1121. label00000C0E:
  1122. 00000C0E  302D FD3E                move.w     D0, [A5 - 0x2C2]
  1123. 00000C12  48C0                     ext.l      D0
  1124. 00000C14  5380                     subq.l     D0, 1
  1125. 00000C16  B087                     cmp.l      D0, D7
  1126. 00000C18  6606                     bne        +0x8 /* 00000C20 */
  1127. 00000C1A  3D7C 01FC FFFC           move.w     [A6 - 0x4], 0x1FC
  1128. label00000C20:
  1129. 00000C20  302D FD40                move.w     D0, [A5 - 0x2C0]
  1130. 00000C24  48C0                     ext.l      D0
  1131. 00000C26  5380                     subq.l     D0, 1
  1132. 00000C28  B086                     cmp.l      D0, D6
  1133. 00000C2A  6606                     bne        +0x8 /* 00000C32 */
  1134. 00000C2C  3D7C 00F4 FFFA           move.w     [A6 - 0x6], 0xF4
  1135. label00000C32:
  1136. 00000C32  2006                     move.l     D0, D6
  1137. 00000C34  C1FC 00C0                muls.w     D0, 0xC0
  1138. 00000C38  2207                     move.l     D1, D7
  1139. 00000C3A  C3FC 0018                muls.w     D1, 0x18
  1140. 00000C3E  D240                     add.w      D1, D0
  1141. 00000C40  41F4 1008                lea.l      A0, [A4 + D1.w + 0x8]
  1142. 00000C44  43EE FFF6                lea.l      A1, [A6 - 0xA]
  1143. 00000C48  20D9                     move.l     [A0]+, [A1]+
  1144. 00000C4A  20D9                     move.l     [A0]+, [A1]+
  1145. 00000C4C  486E FFF6                pea.l      [A6 - 0xA]
  1146. 00000C50  70FC                     moveq.l    D0, 0xFFFFFFFC
  1147. 00000C52  3F00                     move.w     -[A7], D0
  1148. 00000C54  3F00                     move.w     -[A7], D0
  1149. 00000C56  A8A9                     syscall    InsetRect
  1150. 00000C58  2006                     move.l     D0, D6
  1151. 00000C5A  C1FC 00C0                muls.w     D0, 0xC0
  1152. 00000C5E  2207                     move.l     D1, D7
  1153. 00000C60  C3FC 0018                muls.w     D1, 0x18
  1154. 00000C64  D240                     add.w      D1, D0
  1155. 00000C66  41F4 1010                lea.l      A0, [A4 + D1.w + 0x10]
  1156. 00000C6A  43EE FFF6                lea.l      A1, [A6 - 0xA]
  1157. 00000C6E  20D9                     move.l     [A0]+, [A1]+
  1158. 00000C70  20D9                     move.l     [A0]+, [A1]+
  1159. 00000C72  486E FFF6                pea.l      [A6 - 0xA]
  1160. 00000C76  7004                     moveq.l    D0, 0x04
  1161. 00000C78  3F00                     move.w     -[A7], D0
  1162. 00000C7A  3F00                     move.w     -[A7], D0
  1163. 00000C7C  A8A9                     syscall    InsetRect
  1164. 00000C7E  302D F8E2                move.w     D0, [A5 - 0x71E]
  1165. 00000C82  48C0                     ext.l      D0
  1166. 00000C84  2F00                     move.l     -[A7], D0
  1167. 00000C86  4EAD 0062                jsr        [A5 + 0x62 /* export_8 */]
  1168. 00000C8A  2206                     move.l     D1, D6
  1169. 00000C8C  C3FC 00C0                muls.w     D1, 0xC0
  1170. 00000C90  2407                     move.l     D2, D7
  1171. 00000C92  C5FC 0018                muls.w     D2, 0x18
  1172. 00000C96  D441                     add.w      D2, D1
  1173. 00000C98  3980 2006                move.w     [A4 + D2.w + 0x6], D0
  1174. 00000C9C  7A19                     moveq.l    D5, 0x19
  1175. 00000C9E  9A6D FA3E                sub.w      D5, [A5 - 0x5C2]
  1176. 00000CA2  7006                     moveq.l    D0, 0x06
  1177. 00000CA4  B06D FA3E                cmp.w      D0, [A5 - 0x5C2]
  1178. 00000CA8  588F                     addq.l     A7, 4
  1179. 00000CAA  6F02                     ble        +0x4 /* 00000CAE */
  1180. 00000CAC  5D45                     subq.w     D5, 6
  1181. label00000CAE:
  1182. 00000CAE  2006                     move.l     D0, D6
  1183. 00000CB0  C1FC 00C0                muls.w     D0, 0xC0
  1184. 00000CB4  2207                     move.l     D1, D7
  1185. 00000CB6  C3FC 0018                muls.w     D1, 0x18
  1186. 00000CBA  D240                     add.w      D1, D0
  1187. 00000CBC  3985 1000                move.w     [A4 + D1.w], D5
  1188. 00000CC0  2006                     move.l     D0, D6
  1189. 00000CC2  C1FC 00C0                muls.w     D0, 0xC0
  1190. 00000CC6  2207                     move.l     D1, D7
  1191. 00000CC8  C3FC 0018                muls.w     D1, 0x18
  1192. 00000CCC  D240                     add.w      D1, D0
  1193. 00000CCE  4274 1002                clr.w      [A4 + D1.w + 0x2]
  1194. 00000CD2  2007                     move.l     D0, D7
  1195. 00000CD4  5287                     addq.l     D7, 1
  1196. label00000CD6:
  1197. 00000CD6  302D FD3E                move.w     D0, [A5 - 0x2C2]
  1198. 00000CDA  48C0                     ext.l      D0
  1199. 00000CDC  B087                     cmp.l      D0, D7
  1200. 00000CDE  6E00 FF1E                bgt        -0xE0 /* 00000BFE */
  1201. 00000CE2  2006                     move.l     D0, D6
  1202. 00000CE4  5286                     addq.l     D6, 1
  1203. label00000CE6:
  1204. 00000CE6  302D FD40                move.w     D0, [A5 - 0x2C0]
  1205. 00000CEA  48C0                     ext.l      D0
  1206. 00000CEC  B086                     cmp.l      D0, D6
  1207. 00000CEE  6E00 FED6                bgt        -0x128 /* 00000BC6 */
  1208. 00000CF2  4A2D FA16                tst.b      [A5 - 0x5EA]
  1209. 00000CF6  6708                     beq        +0xA /* 00000D00 */
  1210. 00000CF8  1B7C 0001 FA14           move.b     [A5 - 0x5EC], 0x1
  1211. 00000CFE  6004                     bra        +0x6 /* 00000D04 */
  1212. label00000D00:
  1213. 00000D00  422D FA14                clr.b      [A5 - 0x5EC]
  1214. label00000D04:
  1215. 00000D04  7017                     moveq.l    D0, 0x17
  1216. 00000D06  906D FA3E                sub.w      D0, [A5 - 0x5C2]
  1217. 00000D0A  3B40 F8E0                move.w     [A5 - 0x720], D0
  1218. 00000D0E  7005                     moveq.l    D0, 0x05
  1219. 00000D10  B06D FA3E                cmp.w      D0, [A5 - 0x5C2]
  1220. 00000D14  6F04                     ble        +0x6 /* 00000D1A */
  1221. 00000D16  576D F8E0                subq.w     [A5 - 0x720], 3
  1222. label00000D1A:
  1223. 00000D1A  3B7C 0004 F8E0           move.w     [A5 - 0x720], 0x4
  1224. 00000D20  426D F8DE                clr.w      [A5 - 0x722]
  1225. 00000D24  426D F50C                clr.w      [A5 - 0xAF4]
  1226. 00000D28  422D FD4C                clr.b      [A5 - 0x2B4]
  1227. 00000D2C  586D FD62                addq.w     [A5 - 0x29E], 4
  1228. 00000D30  3B6D FD62 FD4A           move.w     [A5 - 0x2B6], [A5 - 0x29E]
  1229. 00000D36  1B7C 0001 FA1E           move.b     [A5 - 0x5E2], 0x1
  1230. 00000D3C  4A6D FA3E                tst.w      [A5 - 0x5C2]
  1231. 00000D40  6606                     bne        +0x8 /* 00000D48 */
  1232. 00000D42  397C 0005 00D8           move.w     [A4 + 0xD8], 0x5
  1233. label00000D48:
  1234. 00000D48  4CEE 18F8 FFD6           movem.l    D3,D4,D5,D6,D7,A3,A4, [A6 - 0x2A]
  1235. 00000D4E  4E5E                     unlink     A6
  1236. 00000D50  4E75                     rts
  1237. fn00000D52:
  1238. 00000D52  4E56 0000                link       A6, 0
  1239. 00000D56  48E7 1100                movem.l    -[A7], D3,D7
  1240. 00000D5A  558F                     subq.l     A7, 2
  1241. 00000D5C  3F3C 2238                move.w     -[A7], 0x2238 /* '\"8' */
  1242. 00000D60  7000                     moveq.l    D0, 0x00
  1243. 00000D62  2F00                     move.l     -[A7], D0
  1244. 00000D64  A988                     syscall    CautionAlert
  1245. 00000D66  7002                     moveq.l    D0, 0x02
  1246. 00000D68  B05F                     cmp.w      D0, [A7]+
  1247. 00000D6A  662A                     bne        +0x2C /* 00000D96 */
  1248. 00000D6C  7E00                     moveq.l    D7, 0x00
  1249. 00000D6E  7614                     moveq.l    D3, 0x14
  1250. label00000D70:
  1251. 00000D70  2007                     move.l     D0, D7
  1252. 00000D72  EB80                     asl        D0, 5
  1253. 00000D74  41ED FA42                lea.l      A0, [A5 - 0x5BE]
  1254. 00000D78  4230 0800                clr.b      [A0 + D0]
  1255. 00000D7C  2007                     move.l     D0, D7
  1256. 00000D7E  E580                     asl        D0, 2
  1257. 00000D80  41ED FCC2                lea.l      A0, [A5 - 0x33E]
  1258. 00000D84  7200                     moveq.l    D1, 0x00
  1259. 00000D86  2181 0800                move.l     [A0 + D0], D1
  1260. 00000D8A  2007                     move.l     D0, D7
  1261. 00000D8C  5287                     addq.l     D7, 1
  1262. 00000D8E  B687                     cmp.l      D3, D7
  1263. 00000D90  6EDE                     bgt        -0x20 /* 00000D70 */
  1264. 00000D92  4EBA FAFE                jsr        [PC - 0x502 /* 00000892 */]
  1265. label00000D96:
  1266. 00000D96  4CEE 0088 FFF8           movem.l    D3,D7, [A6 - 0x8]
  1267. 00000D9C  4E5E                     unlink     A6
  1268. 00000D9E  4E75                     rts
  1269. fn00000DA0:
  1270. 00000DA0  4E56 FFFC                link       A6, -0x0004
  1271. 00000DA4  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  1272. 00000DA8  7E01                     moveq.l    D7, 0x01
  1273. 00000DAA  598F                     subq.l     A7, 4
  1274. 00000DAC  AA32                     syscall    GetGDevice
  1275. 00000DAE  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  1276. 00000DB2  598F                     subq.l     A7, 4
  1277. 00000DB4  AA29                     syscall    GetDeviceList
  1278. 00000DB6  285F                     movea.l    A4, [A7]+
  1279. 00000DB8  605C                     bra        +0x5E /* 00000E16 */
  1280. label00000DBA:
  1281. 00000DBA  2F0C                     move.l     -[A7], A4
  1282. 00000DBC  AA31                     syscall    SetGDevice
  1283. 00000DBE  558F                     subq.l     A7, 2
  1284. 00000DC0  2F0C                     move.l     -[A7], A4
  1285. 00000DC2  700D                     moveq.l    D0, 0x0D
  1286. 00000DC4  3F00                     move.w     -[A7], D0
  1287. 00000DC6  AA2C                     syscall    TestDeviceAttribute
  1288. 00000DC8  4A1F                     tst.b      [A7]+
  1289. 00000DCA  673C                     beq        +0x3E /* 00000E08 */
  1290. 00000DCC  558F                     subq.l     A7, 2
  1291. 00000DCE  2F0C                     move.l     -[A7], A4
  1292. 00000DD0  700F                     moveq.l    D0, 0x0F
  1293. 00000DD2  3F00                     move.w     -[A7], D0
  1294. 00000DD4  AA2C                     syscall    TestDeviceAttribute
  1295. 00000DD6  4A1F                     tst.b      [A7]+
  1296. 00000DD8  672E                     beq        +0x30 /* 00000E08 */
  1297. 00000DDA  558F                     subq.l     A7, 2
  1298. 00000DDC  2F0C                     move.l     -[A7], A4
  1299. 00000DDE  700B                     moveq.l    D0, 0x0B
  1300. 00000DE0  3F00                     move.w     -[A7], D0
  1301. 00000DE2  AA2C                     syscall    TestDeviceAttribute
  1302. 00000DE4  4A1F                     tst.b      [A7]+
  1303. 00000DE6  6720                     beq        +0x22 /* 00000E08 */
  1304. 00000DE8  2054                     movea.l    A0, [A4]
  1305. 00000DEA  2668 0016                movea.l    A3, [A0 + 0x16]
  1306. 00000DEE  2053                     movea.l    A0, [A3]
  1307. 00000DF0  3C28 0020                move.w     D6, [A0 + 0x20]
  1308. 00000DF4  0C46 0008                cmpi.w     D6, 0x8
  1309. 00000DF8  6C06                     bge        +0x8 /* 00000E00 */
  1310. 00000DFA  422D FA24                clr.b      [A5 - 0x5DC]
  1311. 00000DFE  6006                     bra        +0x8 /* 00000E06 */
  1312. label00000E00:
  1313. 00000E00  1B7C 0001 FA24           move.b     [A5 - 0x5DC], 0x1
  1314. label00000E06:
  1315. 00000E06  4207                     clr.b      D7
  1316. label00000E08:
  1317. 00000E08  598F                     subq.l     A7, 4
  1318. 00000E0A  2F0C                     move.l     -[A7], A4
  1319. 00000E0C  AA2B                     syscall    GetNextDevice
  1320. 00000E0E  285F                     movea.l    A4, [A7]+
  1321. 00000E10  200C                     move.l     D0, A4
  1322. 00000E12  6602                     bne        +0x4 /* 00000E16 */
  1323. 00000E14  4207                     clr.b      D7
  1324. label00000E16:
  1325. 00000E16  4A07                     tst.b      D7
  1326. 00000E18  66A0                     bne        -0x5E /* 00000DBA */
  1327. 00000E1A  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  1328. 00000E1E  AA31                     syscall    SetGDevice
  1329. 00000E20  4CEE 18C0 FFEC           movem.l    D6,D7,A3,A4, [A6 - 0x14]
  1330. 00000E26  4E5E                     unlink     A6
  1331. 00000E28  4E75                     rts
  1332. export_4:
  1333. 00000E2A  4E56 FFF4                link       A6, -0x000C
  1334. 00000E2E  48E7 1108                movem.l    -[A7], D3,D7,A4
  1335. 00000E32  3D7C 0200 FFFE           move.w     [A6 - 0x2], 0x200
  1336. 00000E38  3D7C 00F8 FFFC           move.w     [A6 - 0x4], 0xF8
  1337. 00000E3E  42AE FFF8                clr.l      [A6 - 0x8]
  1338. 00000E42  4A2D FA22                tst.b      [A5 - 0x5DE]
  1339. 00000E46  6724                     beq        +0x26 /* 00000E6C */
  1340. 00000E48  598F                     subq.l     A7, 4
  1341. 00000E4A  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1342. 00000E50  3F3C 0259                move.w     -[A7], 0x259
  1343. 00000E54  A9A0                     syscall    GetResource
  1344. 00000E56  285F                     movea.l    A4, [A7]+
  1345. 00000E58  558F                     subq.l     A7, 2
  1346. 00000E5A  7000                     moveq.l    D0, 0x00
  1347. 00000E5C  2F00                     move.l     -[A7], D0
  1348. 00000E5E  2F0C                     move.l     -[A7], A4
  1349. 00000E60  7200                     moveq.l    D1, 0x00
  1350. 00000E62  1F01                     move.b     -[A7], D1
  1351. 00000E64  A805                     syscall    SndPlay
  1352. 00000E66  2F0C                     move.l     -[A7], A4
  1353. 00000E68  A9A3                     syscall    ReleaseResource
  1354. 00000E6A  548F                     addq.l     A7, 2
  1355. label00000E6C:
  1356. 00000E6C  7E00                     moveq.l    D7, 0x00
  1357. label00000E6E:
  1358. 00000E6E  486E FFF8                pea.l      [A6 - 0x8]
  1359. 00000E72  A8A4                     syscall    InvertRect
  1360. 00000E74  307C 000A                movea.w    A0, 0xA /* '\n' */
  1361. 00000E78  43EE FFF4                lea.l      A1, [A6 - 0xC]
  1362. 00000E7C  A03B                     syscall    Delay
  1363. 00000E7E  2280                     move.l     [A1], D0
  1364. 00000E80  2007                     move.l     D0, D7
  1365. 00000E82  5287                     addq.l     D7, 1
  1366. 00000E84  7004                     moveq.l    D0, 0x04
  1367. 00000E86  B087                     cmp.l      D0, D7
  1368. 00000E88  6EE4                     bgt        -0x1A /* 00000E6E */
  1369. 00000E8A  302D FA3E                move.w     D0, [A5 - 0x5C2]
  1370. 00000E8E  526D FA3E                addq.w     [A5 - 0x5C2], 1
  1371. 00000E92  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1372. 00000E96  4868 0010                pea.l      [A0 + 0x10]
  1373. 00000E9A  A928                     syscall    InvalRect
  1374. 00000E9C  303C 012C                move.w     D0, 0x12C
  1375. 00000EA0  906D F8DE                sub.w      D0, [A5 - 0x722]
  1376. 00000EA4  3B40 F8DE                move.w     [A5 - 0x722], D0
  1377. 00000EA8  48C0                     ext.l      D0
  1378. 00000EAA  81FC 0007                divs.w     D0, 0x7
  1379. 00000EAE  3B40 F8DE                move.w     [A5 - 0x722], D0
  1380. 00000EB2  302D FD4A                move.w     D0, [A5 - 0x2B6]
  1381. 00000EB6  906D FD62                sub.w      D0, [A5 - 0x29E]
  1382. 00000EBA  3B40 FD4A                move.w     [A5 - 0x2B6], D0
  1383. 00000EBE  302D FA3E                move.w     D0, [A5 - 0x5C2]
  1384. 00000EC2  48C0                     ext.l      D0
  1385. 00000EC4  5280                     addq.l     D0, 1
  1386. 00000EC6  7202                     moveq.l    D1, 0x02
  1387. 00000EC8  4EBA 0ACE                jsr        [PC + 0xACE /* 00001998 */]
  1388. 00000ECC  2E00                     move.l     D7, D0
  1389. 00000ECE  6E02                     bgt        +0x4 /* 00000ED2 */
  1390. 00000ED0  7E01                     moveq.l    D7, 0x01
  1391. label00000ED2:
  1392. 00000ED2  302D F8DE                move.w     D0, [A5 - 0x722]
  1393. 00000ED6  48C0                     ext.l      D0
  1394. 00000ED8  D080                     add.l      D0, D0
  1395. 00000EDA  2207                     move.l     D1, D7
  1396. 00000EDC  4EBA 0A92                jsr        [PC + 0xA92 /* 00001970 */]
  1397. 00000EE0  2D40 FFF4                move.l     [A6 - 0xC], D0
  1398. 00000EE4  322D FD4A                move.w     D1, [A5 - 0x2B6]
  1399. 00000EE8  48C1                     ext.l      D1
  1400. 00000EEA  E589                     lsl        D1, 2
  1401. 00000EEC  2001                     move.l     D0, D1
  1402. 00000EEE  E589                     lsl        D1, 2
  1403. 00000EF0  D280                     add.l      D1, D0
  1404. 00000EF2  202E FFF4                move.l     D0, [A6 - 0xC]
  1405. 00000EF6  9081                     sub.l      D0, D1
  1406. 00000EF8  2D40 FFF4                move.l     [A6 - 0xC], D0
  1407. 00000EFC  4A2D FA14                tst.b      [A5 - 0x5EC]
  1408. 00000F00  6714                     beq        +0x16 /* 00000F16 */
  1409. 00000F02  4AAE FFF4                tst.l      [A6 - 0xC]
  1410. 00000F06  6F0E                     ble        +0x10 /* 00000F16 */
  1411. 00000F08  202E FFF4                move.l     D0, [A6 - 0xC]
  1412. 00000F0C  7202                     moveq.l    D1, 0x02
  1413. 00000F0E  4EBA 0A88                jsr        [PC + 0xA88 /* 00001998 */]
  1414. 00000F12  2D40 FFF4                move.l     [A6 - 0xC], D0
  1415. label00000F16:
  1416. 00000F16  202E FFF4                move.l     D0, [A6 - 0xC]
  1417. 00000F1A  D1AD FD12                add.l      [A5 - 0x2EE], D0
  1418. 00000F1E  4EBA FB4E                jsr        [PC - 0x4B2 /* 00000A6E */]
  1419. 00000F22  4CEE 1088 FFE8           movem.l    D3,D7,A4, [A6 - 0x18]
  1420. 00000F28  4E5E                     unlink     A6
  1421. 00000F2A  4E75                     rts
  1422. fn00000F2C:
  1423. 00000F2C  4E56 0000                link       A6, 0
  1424. 00000F30  48E7 0018                movem.l    -[A7], A3,A4
  1425. 00000F34  47ED F940                lea.l      A3, [A5 - 0x6C0]
  1426. 00000F38  598F                     subq.l     A7, 4
  1427. 00000F3A  2F3C 5041 5423           move.l     -[A7], 0x50415423 /* 'PAT#' */
  1428. 00000F40  3F3C 0080                move.w     -[A7], 0x80
  1429. 00000F44  A9A0                     syscall    GetResource
  1430. 00000F46  2857                     movea.l    A4, [A7]
  1431. 00000F48  A992                     syscall    DetachResource
  1432. 00000F4A  204C                     movea.l    A0, A4
  1433. 00000F4C  A029                     syscall    HLock
  1434. 00000F4E  2B54 FA3A                move.l     [A5 - 0x5C6], [A4]
  1435. 00000F52  54AD FA3A                addq.l     [A5 - 0x5C6], 2
  1436. 00000F56  598F                     subq.l     A7, 4
  1437. 00000F58  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1438. 00000F5E  3F3C 025A                move.w     -[A7], 0x25A
  1439. 00000F62  A9A0                     syscall    GetResource
  1440. 00000F64  2B57 FD56                move.l     [A5 - 0x2AA], [A7]
  1441. 00000F68  A992                     syscall    DetachResource
  1442. 00000F6A  598F                     subq.l     A7, 4
  1443. 00000F6C  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1444. 00000F72  3F3C 025B                move.w     -[A7], 0x25B
  1445. 00000F76  A9A0                     syscall    GetResource
  1446. 00000F78  2B57 FD5A                move.l     [A5 - 0x2A6], [A7]
  1447. 00000F7C  A992                     syscall    DetachResource
  1448. 00000F7E  598F                     subq.l     A7, 4
  1449. 00000F80  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1450. 00000F86  3F3C 4DB3                move.w     -[A7], 0x4DB3
  1451. 00000F8A  A9A0                     syscall    GetResource
  1452. 00000F8C  2B57 FD46                move.l     [A5 - 0x2BA], [A7]
  1453. 00000F90  A992                     syscall    DetachResource
  1454. 00000F92  598F                     subq.l     A7, 4
  1455. 00000F94  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1456. 00000F9A  3F3C 5D45                move.w     -[A7], 0x5D45 /* ']E' */
  1457. 00000F9E  A9A0                     syscall    GetResource
  1458. 00000FA0  2B57 FD42                move.l     [A5 - 0x2BE], [A7]
  1459. 00000FA4  A992                     syscall    DetachResource
  1460. 00000FA6  598F                     subq.l     A7, 4
  1461. 00000FA8  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1462. 00000FAE  3F3C 16DA                move.w     -[A7], 0x16DA
  1463. 00000FB2  A9A0                     syscall    GetResource
  1464. 00000FB4  2B57 FD52                move.l     [A5 - 0x2AE], [A7]
  1465. 00000FB8  A992                     syscall    DetachResource
  1466. 00000FBA  598F                     subq.l     A7, 4
  1467. 00000FBC  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1468. 00000FC2  3F3C 4165                move.w     -[A7], 0x4165 /* 'Ae' */
  1469. 00000FC6  A9A0                     syscall    GetResource
  1470. 00000FC8  2B57 FD4E                move.l     [A5 - 0x2B2], [A7]
  1471. 00000FCC  A992                     syscall    DetachResource
  1472. 00000FCE  598F                     subq.l     A7, 4
  1473. 00000FD0  2F3C 6D43 4C52           move.l     -[A7], 0x6D434C52 /* 'mCLR' */
  1474. 00000FD6  3F3C 21B5                move.w     -[A7], 0x21B5
  1475. 00000FDA  A9A0                     syscall    GetResource
  1476. 00000FDC  285F                     movea.l    A4, [A7]+
  1477. 00000FDE  204C                     movea.l    A0, A4
  1478. 00000FE0  A029                     syscall    HLock
  1479. 00000FE2  2054                     movea.l    A0, [A4]
  1480. 00000FE4  224B                     movea.l    A1, A3
  1481. 00000FE6  203C 0000 00B4           move.l     D0, 0xB4
  1482. 00000FEC  A02E                     syscall    BlockMove/BlockMoveData
  1483. 00000FEE  204C                     movea.l    A0, A4
  1484. 00000FF0  A02A                     syscall    HUnlock
  1485. 00000FF2  2F0C                     move.l     -[A7], A4
  1486. 00000FF4  A9A3                     syscall    ReleaseResource
  1487. 00000FF6  4CEE 1800 FFF8           movem.l    A3,A4, [A6 - 0x8]
  1488. 00000FFC  4E5E                     unlink     A6
  1489. 00000FFE  4E75                     rts
  1490. fn00001000:
  1491. 00001000  4E56 0000                link       A6, 0
  1492. 00001004  48E7 1100                movem.l    -[A7], D3,D7
  1493. 00001008  598F                     subq.l     A7, 4
  1494. 0000100A  3F3C 0094                move.w     -[A7], 0x94
  1495. 0000100E  A9C0                     syscall    GetNewMBar
  1496. 00001010  2B57 F9F4                move.l     [A5 - 0x60C], [A7]
  1497. 00001014  A93C                     syscall    SetMenuBar
  1498. 00001016  598F                     subq.l     A7, 4
  1499. 00001018  3F3C 0080                move.w     -[A7], 0x80
  1500. 0000101C  A949                     syscall    GetMenuHandle
  1501. 0000101E  2B5F FD9C                move.l     [A5 - 0x264], [A7]+
  1502. 00001022  598F                     subq.l     A7, 4
  1503. 00001024  3F3C 0081                move.w     -[A7], 0x81
  1504. 00001028  A949                     syscall    GetMenuHandle
  1505. 0000102A  2B5F FD98                move.l     [A5 - 0x268], [A7]+
  1506. 0000102E  598F                     subq.l     A7, 4
  1507. 00001030  3F3C 0082                move.w     -[A7], 0x82
  1508. 00001034  A949                     syscall    GetMenuHandle
  1509. 00001036  2B5F FD94                move.l     [A5 - 0x26C], [A7]+
  1510. 0000103A  598F                     subq.l     A7, 4
  1511. 0000103C  3F3C 0083                move.w     -[A7], 0x83
  1512. 00001040  A949                     syscall    GetMenuHandle
  1513. 00001042  2B5F FD90                move.l     [A5 - 0x270], [A7]+
  1514. 00001046  2F2D FD98                move.l     -[A7], [A5 - 0x268]
  1515. 0000104A  7003                     moveq.l    D0, 0x03
  1516. 0000104C  3F00                     move.w     -[A7], D0
  1517. 0000104E  A939                     syscall    EnableItem
  1518. 00001050  7E01                     moveq.l    D7, 0x01
  1519. label00001052:
  1520. 00001052  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1521. 00001056  3F07                     move.w     -[A7], D7
  1522. 00001058  A939                     syscall    EnableItem
  1523. 0000105A  2007                     move.l     D0, D7
  1524. 0000105C  5287                     addq.l     D7, 1
  1525. 0000105E  7009                     moveq.l    D0, 0x09
  1526. 00001060  B087                     cmp.l      D0, D7
  1527. 00001062  6EEE                     bgt        -0x10 /* 00001052 */
  1528. 00001064  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1529. 00001068  7002                     moveq.l    D0, 0x02
  1530. 0000106A  3F00                     move.w     -[A7], D0
  1531. 0000106C  A93A                     syscall    DisableItem
  1532. 0000106E  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1533. 00001072  7008                     moveq.l    D0, 0x08
  1534. 00001074  3F00                     move.w     -[A7], D0
  1535. 00001076  A93A                     syscall    DisableItem
  1536. 00001078  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1537. 0000107C  7002                     moveq.l    D0, 0x02
  1538. 0000107E  3F00                     move.w     -[A7], D0
  1539. 00001080  A939                     syscall    EnableItem
  1540. 00001082  1B7C 0001 FA22           move.b     [A5 - 0x5DE], 0x1
  1541. 00001088  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1542. 0000108C  7006                     moveq.l    D0, 0x06
  1543. 0000108E  3F00                     move.w     -[A7], D0
  1544. 00001090  7201                     moveq.l    D1, 0x01
  1545. 00001092  1F01                     move.b     -[A7], D1
  1546. 00001094  A945                     syscall    CheckItem
  1547. 00001096  A937                     syscall    DrawMenuBar
  1548. 00001098  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1549. 0000109C  2F3C 4452 5652           move.l     -[A7], 0x44525652 /* 'DRVR' */
  1550. 000010A2  A94D                     syscall    AppendResMenu/AddResMenu
  1551. 000010A4  4CEE 0088 FFF8           movem.l    D3,D7, [A6 - 0x8]
  1552. 000010AA  4E5E                     unlink     A6
  1553. 000010AC  4E75                     rts
  1554. fn000010AE:
  1555. 000010AE  4E56 0000                link       A6, 0
  1556. 000010B2  48E7 0F08                movem.l    -[A7], D4,D5,D6,D7,A4
  1557. 000010B6  2A2E 0008                move.l     D5, [A6 + 0x8]
  1558. 000010BA  4206                     clr.b      D6
  1559. 000010BC  558F                     subq.l     A7, 2
  1560. 000010BE  2F05                     move.l     -[A7], D5
  1561. 000010C0  A86B                     syscall    LoWord
  1562. 000010C2  301F                     move.w     D0, [A7]+
  1563. 000010C4  48C0                     ext.l      D0
  1564. 000010C6  2E00                     move.l     D7, D0
  1565. 000010C8  558F                     subq.l     A7, 2
  1566. 000010CA  2F05                     move.l     -[A7], D5
  1567. 000010CC  A86A                     syscall    HiWord
  1568. 000010CE  301F                     move.w     D0, [A7]+
  1569. 000010D0  48C0                     ext.l      D0
  1570. 000010D2  2800                     move.l     D4, D0
  1571. 000010D4  7000                     moveq.l    D0, 0x00
  1572. 000010D6  3F00                     move.w     -[A7], D0
  1573. 000010D8  A938                     syscall    HiliteMenu
  1574. 000010DA  2004                     move.l     D0, D4
  1575. 000010DC  0480 0000 0080           subi.l     D0, 0x80
  1576. 000010E2  6B00 01A0                bmi        +0x1A2 /* 00001284 */
  1577. 000010E6  0C80 0000 0003           cmpi.l     D0, 0x3
  1578. 000010EC  6E00 0196                bgt        +0x198 /* 00001284 */
  1579. 000010F0  D080                     add.l      D0, D0
  1580. 000010F2  303B 0806                move.w     D0, [PC + D0 + 0x6]
  1581. 000010F6  4EFB 0000                jmp        [PC + D0.w]
  1582. 000010FA  000A 006E                ori.b      A2, 0x6E /* 'n' */
  1583. 000010FE  0080 0086 7001           ori.l      D0, 0x867001
  1584. 00001104  B087                     cmp.l      D0, D7
  1585. 00001106  663E                     bne        +0x40 /* 00001146 */
  1586. 00001108  598F                     subq.l     A7, 4
  1587. 0000110A  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  1588. 00001110  3F3C 4263                move.w     -[A7], 0x4263 /* 'Bc' */
  1589. 00001114  A9A0                     syscall    GetResource
  1590. 00001116  285F                     movea.l    A4, [A7]+
  1591. 00001118  4A2D FA22                tst.b      [A5 - 0x5DE]
  1592. 0000111C  6710                     beq        +0x12 /* 0000112E */
  1593. 0000111E  558F                     subq.l     A7, 2
  1594. 00001120  7000                     moveq.l    D0, 0x00
  1595. 00001122  2F00                     move.l     -[A7], D0
  1596. 00001124  2F0C                     move.l     -[A7], A4
  1597. 00001126  7200                     moveq.l    D1, 0x00
  1598. 00001128  1F01                     move.b     -[A7], D1
  1599. 0000112A  A805                     syscall    SndPlay
  1600. 0000112C  548F                     addq.l     A7, 2
  1601. label0000112E:
  1602. 0000112E  2F0C                     move.l     -[A7], A4
  1603. 00001130  A9A3                     syscall    ReleaseResource
  1604. 00001132  558F                     subq.l     A7, 2
  1605. 00001134  3F3C 3E7F                move.w     -[A7], 0x3E7F
  1606. 00001138  7000                     moveq.l    D0, 0x00
  1607. 0000113A  2F00                     move.l     -[A7], D0
  1608. 0000113C  A985                     syscall    Alert
  1609. 0000113E  7C01                     moveq.l    D6, 0x01
  1610. 00001140  548F                     addq.l     A7, 2
  1611. 00001142  6000 0140                bra        +0x142 /* 00001284 */
  1612. label00001146:
  1613. 00001146  7002                     moveq.l    D0, 0x02
  1614. 00001148  B087                     cmp.l      D0, D7
  1615. 0000114A  6608                     bne        +0xA /* 00001154 */
  1616. 0000114C  4EBA 0170                jsr        [PC + 0x170 /* 000012BE */]
  1617. 00001150  6000 0132                bra        +0x134 /* 00001284 */
  1618. label00001154:
  1619. 00001154  2F07                     move.l     -[A7], D7
  1620. 00001156  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1621. 0000115A  4EBA 0134                jsr        [PC + 0x134 /* 00001290 */]
  1622. 0000115E  7C01                     moveq.l    D6, 0x01
  1623. 00001160  508F                     addq.l     A7, 8
  1624. 00001162  6000 0120                bra        +0x122 /* 00001284 */
  1625. 00001166  7001                     moveq.l    D0, 0x01
  1626. 00001168  B087                     cmp.l      D0, D7
  1627. 0000116A  6600 0118                bne        +0x11A /* 00001284 */
  1628. 0000116E  1B7C 0001 F9F8           move.b     [A5 - 0x608], 0x1
  1629. 00001174  6000 010E                bra        +0x110 /* 00001284 */
  1630. 00001178  7C01                     moveq.l    D6, 0x01
  1631. 0000117A  6000 0108                bra        +0x10A /* 00001284 */
  1632. 0000117E  2007                     move.l     D0, D7
  1633. 00001180  5380                     subq.l     D0, 1
  1634. 00001182  6B00 0100                bmi        +0x102 /* 00001284 */
  1635. 00001186  0C80 0000 0007           cmpi.l     D0, 0x7
  1636. 0000118C  6E00 00F6                bgt        +0xF8 /* 00001284 */
  1637. 00001190  D080                     add.l      D0, D0
  1638. 00001192  303B 0806                move.w     D0, [PC + D0 + 0x6]
  1639. 00001196  4EFB 0000                jmp        [PC + D0.w]
  1640. 0000119A  0012 00EC                ori.b      [A2], 0xEC
  1641. 0000119E  0042 004A                ori.w      D2, 0x4A /* 'J' */
  1642. 000011A2  00EC                     .incomplete
  1643. 000011A4  0052 0074                ori.w      [A2], 0x74 /* 't' */
  1644. 000011A8  00A2 4A2D FA20           ori.l      -[A2], 0x4A2DFA20
  1645. 000011AE  6716                     beq        +0x18 /* 000011C6 */
  1646. 000011B0  7000                     moveq.l    D0, 0x00
  1647. 000011B2  2F00                     move.l     -[A7], D0
  1648. 000011B4  4EBA 0234                jsr        [PC + 0x234 /* 000013EA */]
  1649. 000011B8  4EBA F428                jsr        [PC - 0xBD8 /* 000005E2 */]
  1650. 000011BC  422D FA20                clr.b      [A5 - 0x5E0]
  1651. 000011C0  588F                     addq.l     A7, 4
  1652. 000011C2  6000 00C0                bra        +0xC2 /* 00001284 */
  1653. label000011C6:
  1654. 000011C6  1B7C 0001 FA20           move.b     [A5 - 0x5E0], 0x1
  1655. 000011CC  7001                     moveq.l    D0, 0x01
  1656. 000011CE  2F00                     move.l     -[A7], D0
  1657. 000011D0  4EBA 0218                jsr        [PC + 0x218 /* 000013EA */]
  1658. 000011D4  588F                     addq.l     A7, 4
  1659. 000011D6  6000 00AC                bra        +0xAE /* 00001284 */
  1660. 000011DA  4EBA F730                jsr        [PC - 0x8D0 /* 0000090C */]
  1661. 000011DE  6000 00A4                bra        +0xA6 /* 00001284 */
  1662. 000011E2  4EBA FB6E                jsr        [PC - 0x492 /* 00000D52 */]
  1663. 000011E6  6000 009C                bra        +0x9E /* 00001284 */
  1664. 000011EA  4A2D FA22                tst.b      [A5 - 0x5DE]
  1665. 000011EE  6706                     beq        +0x8 /* 000011F6 */
  1666. 000011F0  422D FA22                clr.b      [A5 - 0x5DE]
  1667. 000011F4  6006                     bra        +0x8 /* 000011FC */
  1668. label000011F6:
  1669. 000011F6  1B7C 0001 FA22           move.b     [A5 - 0x5DE], 0x1
  1670. label000011FC:
  1671. 000011FC  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1672. 00001200  7006                     moveq.l    D0, 0x06
  1673. 00001202  3F00                     move.w     -[A7], D0
  1674. 00001204  1F2D FA22                move.b     -[A7], [A5 - 0x5DE]
  1675. 00001208  A945                     syscall    CheckItem
  1676. 0000120A  6078                     bra        +0x7A /* 00001284 */
  1677. 0000120C  4A2D FA16                tst.b      [A5 - 0x5EA]
  1678. 00001210  6706                     beq        +0x8 /* 00001218 */
  1679. 00001212  422D FA16                clr.b      [A5 - 0x5EA]
  1680. 00001216  600C                     bra        +0xE /* 00001224 */
  1681. label00001218:
  1682. 00001218  1B7C 0001 FA16           move.b     [A5 - 0x5EA], 0x1
  1683. 0000121E  1B7C 0001 FA14           move.b     [A5 - 0x5EC], 0x1
  1684. label00001224:
  1685. 00001224  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1686. 00001228  7007                     moveq.l    D0, 0x07
  1687. 0000122A  3F00                     move.w     -[A7], D0
  1688. 0000122C  1F2D FA16                move.b     -[A7], [A5 - 0x5EA]
  1689. 00001230  A945                     syscall    CheckItem
  1690. 00001232  486D FD26                pea.l      [A5 - 0x2DA]
  1691. 00001236  A928                     syscall    InvalRect
  1692. 00001238  604A                     bra        +0x4C /* 00001284 */
  1693. 0000123A  4A2D FA12                tst.b      [A5 - 0x5EE]
  1694. 0000123E  6726                     beq        +0x28 /* 00001266 */
  1695. 00001240  422D FA12                clr.b      [A5 - 0x5EE]
  1696. 00001244  70FF                     moveq.l    D0, 0xFFFFFFFF
  1697. 00001246  3F00                     move.w     -[A7], D0
  1698. 00001248  7200                     moveq.l    D1, 0x00
  1699. 0000124A  3F01                     move.w     -[A7], D1
  1700. 0000124C  201F                     move.l     D0, [A7]+
  1701. 0000124E  A032                     syscall    FlushEvents
  1702. 00001250  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1703. 00001254  4868 0010                pea.l      [A0 + 0x10]
  1704. 00001258  A928                     syscall    InvalRect
  1705. 0000125A  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1706. 0000125E  4868 0010                pea.l      [A0 + 0x10]
  1707. 00001262  A8A3                     syscall    EraseRect
  1708. 00001264  6010                     bra        +0x12 /* 00001276 */
  1709. label00001266:
  1710. 00001266  1B7C 0001 FA12           move.b     [A5 - 0x5EE], 0x1
  1711. 0000126C  206D FA0A                movea.l    A0, [A5 - 0x5F6]
  1712. 00001270  4868 0010                pea.l      [A0 + 0x10]
  1713. 00001274  A928                     syscall    InvalRect
  1714. label00001276:
  1715. 00001276  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1716. 0000127A  7008                     moveq.l    D0, 0x08
  1717. 0000127C  3F00                     move.w     -[A7], D0
  1718. 0000127E  1F2D FA12                move.b     -[A7], [A5 - 0x5EE]
  1719. 00001282  A945                     syscall    CheckItem
  1720. label00001284:
  1721. 00001284  1006                     move.b     D0, D6
  1722. 00001286  4CEE 10F0 FFEC           movem.l    D4,D5,D6,D7,A4, [A6 - 0x14]
  1723. 0000128C  4E5E                     unlink     A6
  1724. 0000128E  4E75                     rts
  1725. fn00001290:
  1726. 00001290  4E56 FF00                link       A6, -0x0100
  1727. 00001294  48E7 0108                movem.l    -[A7], D7,A4
  1728. 00001298  49EE FF00                lea.l      A4, [A6 - 0x100]
  1729. 0000129C  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  1730. 000012A0  3F2E 000E                move.w     -[A7], [A6 + 0xE]
  1731. 000012A4  2F0C                     move.l     -[A7], A4
  1732. 000012A6  A946                     syscall    GetMenuItemText/GetItem
  1733. 000012A8  558F                     subq.l     A7, 2
  1734. 000012AA  2F0C                     move.l     -[A7], A4
  1735. 000012AC  A9B6                     syscall    OpenDeskAcc
  1736. 000012AE  301F                     move.w     D0, [A7]+
  1737. 000012B0  48C0                     ext.l      D0
  1738. 000012B2  2E00                     move.l     D7, D0
  1739. 000012B4  4CEE 1080 FEF8           movem.l    D7,A4, [A6 - 0x108]
  1740. 000012BA  4E5E                     unlink     A6
  1741. 000012BC  4E75                     rts
  1742. fn000012BE:
  1743. 000012BE  4E56 FCF0                link       A6, -0x0310
  1744. 000012C2  48E7 0118                movem.l    -[A7], D7,A3,A4
  1745. 000012C6  47EE FF00                lea.l      A3, [A6 - 0x100]
  1746. 000012CA  426E FCF0                clr.w      [A6 - 0x310]
  1747. 000012CE  4247                     clr.w      D7
  1748. 000012D0  486E FD00                pea.l      [A6 - 0x300]
  1749. 000012D4  3F3C 03E9                move.w     -[A7], 0x3E9
  1750. 000012D8  7001                     moveq.l    D0, 0x01
  1751. 000012DA  3F00                     move.w     -[A7], D0
  1752. 000012DC  4EBA 085A                jsr        [PC + 0x85A /* 00001B38 */]
  1753. 000012E0  486E FE00                pea.l      [A6 - 0x200]
  1754. 000012E4  3F3C 03E9                move.w     -[A7], 0x3E9
  1755. 000012E8  7002                     moveq.l    D0, 0x02
  1756. 000012EA  3F00                     move.w     -[A7], D0
  1757. 000012EC  4EBA 084A                jsr        [PC + 0x84A /* 00001B38 */]
  1758. 000012F0  2F0B                     move.l     -[A7], A3
  1759. 000012F2  3F3C 03E9                move.w     -[A7], 0x3E9
  1760. 000012F6  7003                     moveq.l    D0, 0x03
  1761. 000012F8  3F00                     move.w     -[A7], D0
  1762. 000012FA  4EBA 083C                jsr        [PC + 0x83C /* 00001B38 */]
  1763. 000012FE  426D FD8E                clr.w      [A5 - 0x272]
  1764. 00001302  598F                     subq.l     A7, 4
  1765. 00001304  3F3C 2310                move.w     -[A7], 0x2310
  1766. 00001308  7000                     moveq.l    D0, 0x00
  1767. 0000130A  2F00                     move.l     -[A7], D0
  1768. 0000130C  72FF                     moveq.l    D1, 0xFFFFFFFF
  1769. 0000130E  2F01                     move.l     -[A7], D1
  1770. 00001310  A97C                     syscall    GetNewDialog
  1771. 00001312  2857                     movea.l    A4, [A7]
  1772. 00001314  7004                     moveq.l    D0, 0x04
  1773. 00001316  3F00                     move.w     -[A7], D0
  1774. 00001318  486E FCF2                pea.l      [A6 - 0x30E]
  1775. 0000131C  486E FCF4                pea.l      [A6 - 0x30C]
  1776. 00001320  486D FDA0                pea.l      [A5 - 0x260]
  1777. 00001324  A98D                     syscall    GetDialogItem/GetDItem
  1778. 00001326  2F0C                     move.l     -[A7], A4
  1779. 00001328  7004                     moveq.l    D0, 0x04
  1780. 0000132A  3F00                     move.w     -[A7], D0
  1781. 0000132C  7200                     moveq.l    D1, 0x00
  1782. 0000132E  3F01                     move.w     -[A7], D1
  1783. 00001330  486D 004A                pea.l      [A5 + 0x4A /* export_5 */]
  1784. 00001334  486D FDA0                pea.l      [A5 - 0x260]
  1785. 00001338  A98E                     syscall    SetDialogItem/SetDItem
  1786. 0000133A  2F0C                     move.l     -[A7], A4
  1787. 0000133C  A915                     syscall    ShowWindow
  1788. 0000133E  6000 0092                bra        +0x94 /* 000013D2 */
  1789. label00001342:
  1790. 00001342  7000                     moveq.l    D0, 0x00
  1791. 00001344  2F00                     move.l     -[A7], D0
  1792. 00001346  486E FCF0                pea.l      [A6 - 0x310]
  1793. 0000134A  A991                     syscall    ModalDialog
  1794. 0000134C  7005                     moveq.l    D0, 0x05
  1795. 0000134E  B06E FCF0                cmp.w      D0, [A6 - 0x310]
  1796. 00001352  660E                     bne        +0x10 /* 00001362 */
  1797. 00001354  558F                     subq.l     A7, 2
  1798. 00001356  3F3C 0081                move.w     -[A7], 0x81
  1799. 0000135A  7000                     moveq.l    D0, 0x00
  1800. 0000135C  2F00                     move.l     -[A7], D0
  1801. 0000135E  A985                     syscall    Alert
  1802. 00001360  548F                     addq.l     A7, 2
  1803. label00001362:
  1804. 00001362  7003                     moveq.l    D0, 0x03
  1805. 00001364  B06E FCF0                cmp.w      D0, [A6 - 0x310]
  1806. 00001368  6668                     bne        +0x6A /* 000013D2 */
  1807. 0000136A  302D FD8E                move.w     D0, [A5 - 0x272]
  1808. 0000136E  526D FD8E                addq.w     [A5 - 0x272], 1
  1809. 00001372  7003                     moveq.l    D0, 0x03
  1810. 00001374  B06D FD8E                cmp.w      D0, [A5 - 0x272]
  1811. 00001378  6624                     bne        +0x26 /* 0000139E */
  1812. 0000137A  2F0C                     move.l     -[A7], A4
  1813. 0000137C  7003                     moveq.l    D0, 0x03
  1814. 0000137E  3F00                     move.w     -[A7], D0
  1815. 00001380  486E FCF2                pea.l      [A6 - 0x30E]
  1816. 00001384  486E FCF4                pea.l      [A6 - 0x30C]
  1817. 00001388  486E FCF8                pea.l      [A6 - 0x308]
  1818. 0000138C  A98D                     syscall    GetDialogItem/GetDItem
  1819. 0000138E  2F2E FCF4                move.l     -[A7], [A6 - 0x30C]
  1820. 00001392  486D FD68                pea.l      [A5 - 0x298]
  1821. 00001396  A95F                     syscall    SetControlTitle/SetCTitle
  1822. 00001398  486E FCF8                pea.l      [A6 - 0x308]
  1823. 0000139C  A928                     syscall    InvalRect
  1824. label0000139E:
  1825. 0000139E  7003                     moveq.l    D0, 0x03
  1826. 000013A0  B06D FD8E                cmp.w      D0, [A5 - 0x272]
  1827. 000013A4  6C28                     bge        +0x2A /* 000013CE */
  1828. 000013A6  426D FD8E                clr.w      [A5 - 0x272]
  1829. 000013AA  2F0C                     move.l     -[A7], A4
  1830. 000013AC  7003                     moveq.l    D0, 0x03
  1831. 000013AE  3F00                     move.w     -[A7], D0
  1832. 000013B0  486E FCF2                pea.l      [A6 - 0x30E]
  1833. 000013B4  486E FCF4                pea.l      [A6 - 0x30C]
  1834. 000013B8  486E FCF8                pea.l      [A6 - 0x308]
  1835. 000013BC  A98D                     syscall    GetDialogItem/GetDItem
  1836. 000013BE  2F2E FCF4                move.l     -[A7], [A6 - 0x30C]
  1837. 000013C2  486D FD70                pea.l      [A5 - 0x290]
  1838. 000013C6  A95F                     syscall    SetControlTitle/SetCTitle
  1839. 000013C8  486E FCF8                pea.l      [A6 - 0x308]
  1840. 000013CC  A928                     syscall    InvalRect
  1841. label000013CE:
  1842. 000013CE  2F0C                     move.l     -[A7], A4
  1843. 000013D0  A981                     syscall    DrawDialog
  1844. label000013D2:
  1845. 000013D2  7001                     moveq.l    D0, 0x01
  1846. 000013D4  B06E FCF0                cmp.w      D0, [A6 - 0x310]
  1847. 000013D8  6600 FF68                bne        -0x96 /* 00001342 */
  1848. 000013DC  2F0C                     move.l     -[A7], A4
  1849. 000013DE  A983                     syscall    DisposeDialog
  1850. 000013E0  4CEE 1880 FCE4           movem.l    D7,A3,A4, [A6 - 0x31C]
  1851. 000013E6  4E5E                     unlink     A6
  1852. 000013E8  4E75                     rts
  1853. fn000013EA:
  1854. 000013EA  4E56 0000                link       A6, 0
  1855. 000013EE  48E7 0018                movem.l    -[A7], A3,A4
  1856. 000013F2  47ED FD82                lea.l      A3, [A5 - 0x27E]
  1857. 000013F6  49ED FD76                lea.l      A4, [A5 - 0x28A]
  1858. 000013FA  4A2E 000B                tst.b      [A6 + 0xB]
  1859. 000013FE  6740                     beq        +0x42 /* 00001440 */
  1860. 00001400  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1861. 00001404  7001                     moveq.l    D0, 0x01
  1862. 00001406  3F00                     move.w     -[A7], D0
  1863. 00001408  2F0C                     move.l     -[A7], A4
  1864. 0000140A  A947                     syscall    SetMenuItemText/SetItem
  1865. 0000140C  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1866. 00001410  7003                     moveq.l    D0, 0x03
  1867. 00001412  3F00                     move.w     -[A7], D0
  1868. 00001414  A93A                     syscall    DisableItem
  1869. 00001416  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1870. 0000141A  7004                     moveq.l    D0, 0x04
  1871. 0000141C  3F00                     move.w     -[A7], D0
  1872. 0000141E  A93A                     syscall    DisableItem
  1873. 00001420  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1874. 00001424  7008                     moveq.l    D0, 0x08
  1875. 00001426  3F00                     move.w     -[A7], D0
  1876. 00001428  A939                     syscall    EnableItem
  1877. 0000142A  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1878. 0000142E  7002                     moveq.l    D0, 0x02
  1879. 00001430  3F00                     move.w     -[A7], D0
  1880. 00001432  A93A                     syscall    DisableItem
  1881. 00001434  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1882. 00001438  7001                     moveq.l    D0, 0x01
  1883. 0000143A  3F00                     move.w     -[A7], D0
  1884. 0000143C  A93A                     syscall    DisableItem
  1885. 0000143E  6052                     bra        +0x54 /* 00001492 */
  1886. label00001440:
  1887. 00001440  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1888. 00001444  7001                     moveq.l    D0, 0x01
  1889. 00001446  3F00                     move.w     -[A7], D0
  1890. 00001448  2F0B                     move.l     -[A7], A3
  1891. 0000144A  A947                     syscall    SetMenuItemText/SetItem
  1892. 0000144C  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1893. 00001450  7003                     moveq.l    D0, 0x03
  1894. 00001452  3F00                     move.w     -[A7], D0
  1895. 00001454  A939                     syscall    EnableItem
  1896. 00001456  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1897. 0000145A  7004                     moveq.l    D0, 0x04
  1898. 0000145C  3F00                     move.w     -[A7], D0
  1899. 0000145E  A939                     syscall    EnableItem
  1900. 00001460  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1901. 00001464  7006                     moveq.l    D0, 0x06
  1902. 00001466  3F00                     move.w     -[A7], D0
  1903. 00001468  A939                     syscall    EnableItem
  1904. 0000146A  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1905. 0000146E  7007                     moveq.l    D0, 0x07
  1906. 00001470  3F00                     move.w     -[A7], D0
  1907. 00001472  A939                     syscall    EnableItem
  1908. 00001474  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1909. 00001478  7002                     moveq.l    D0, 0x02
  1910. 0000147A  3F00                     move.w     -[A7], D0
  1911. 0000147C  A939                     syscall    EnableItem
  1912. 0000147E  2F2D FD9C                move.l     -[A7], [A5 - 0x264]
  1913. 00001482  7001                     moveq.l    D0, 0x01
  1914. 00001484  3F00                     move.w     -[A7], D0
  1915. 00001486  A939                     syscall    EnableItem
  1916. 00001488  2F2D FD90                move.l     -[A7], [A5 - 0x270]
  1917. 0000148C  7008                     moveq.l    D0, 0x08
  1918. 0000148E  3F00                     move.w     -[A7], D0
  1919. 00001490  A93A                     syscall    DisableItem
  1920. label00001492:
  1921. 00001492  4CEE 1800 FFF8           movem.l    A3,A4, [A6 - 0x8]
  1922. 00001498  4E5E                     unlink     A6
  1923. 0000149A  4E75                     rts
  1924. fn0000149C:
  1925. 0000149C  4E56 0000                link       A6, 0
  1926. 000014A0  48E7 0300                movem.l    -[A7], D6,D7
  1927. 000014A4  1C2E 000F                move.b     D6, [A6 + 0xF]
  1928. 000014A8  3E2E 000A                move.w     D7, [A6 + 0xA]
  1929. 000014AC  7000                     moveq.l    D0, 0x00
  1930. 000014AE  1006                     move.b     D0, D6
  1931. 000014B0  0C40 0001                cmpi.w     D0, 0x1
  1932. 000014B4  6620                     bne        +0x22 /* 000014D6 */
  1933. 000014B6  4A6D FD30                tst.w      [A5 - 0x2D0]
  1934. 000014BA  6F1A                     ble        +0x1C /* 000014D6 */
  1935. 000014BC  7004                     moveq.l    D0, 0x04
  1936. 000014BE  B06D FD30                cmp.w      D0, [A5 - 0x2D0]
  1937. 000014C2  6F12                     ble        +0x14 /* 000014D6 */
  1938. 000014C4  303C 03FF                move.w     D0, 0x3FF
  1939. 000014C8  C047                     and.w      D0, D7
  1940. 000014CA  3E00                     move.w     D7, D0
  1941. 000014CC  0C47 01FF                cmpi.w     D7, 0x1FF
  1942. 000014D0  6F04                     ble        +0x6 /* 000014D6 */
  1943. 000014D2  3E3C A89F                move.w     D7, 0xA89F
  1944. label000014D6:
  1945. 000014D6  598F                     subq.l     A7, 4
  1946. 000014D8  3F07                     move.w     -[A7], D7
  1947. 000014DA  1F06                     move.b     -[A7], D6
  1948. 000014DC  4EBA 058A                jsr        [PC + 0x58A /* 00001A68 */]
  1949. 000014E0  303C A89F                move.w     D0, 0xA89F
  1950. 000014E4  A146                     syscall    GetTrapAddress, flags=1
  1951. 000014E6  B1DF                     cmpa.l     A0, [A7]+
  1952. 000014E8  56C0                     sne        D0
  1953. 000014EA  4400                     neg.b      D0
  1954. 000014EC  4CEE 00C0 FFF8           movem.l    D6,D7, [A6 - 0x8]
  1955. 000014F2  4E5E                     unlink     A6
  1956. 000014F4  4E75                     rts
  1957. export_5:
  1958. 000014F6  4E56 FFFC                link       A6, -0x0004
  1959. 000014FA  2F0C                     move.l     -[A7], A4
  1960. 000014FC  486E FFFC                pea.l      [A6 - 0x4]
  1961. 00001500  A874                     syscall    GetPort
  1962. 00001502  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  1963. 00001506  A873                     syscall    SetPort
  1964. 00001508  598F                     subq.l     A7, 4
  1965. 0000150A  2F3C 5445 5854           move.l     -[A7], 0x54455854 /* 'TEXT' */
  1966. 00001510  302D FD8E                move.w     D0, [A5 - 0x272]
  1967. 00001514  D07C 0080                add.w      D0, 0x80
  1968. 00001518  3F00                     move.w     -[A7], D0
  1969. 0000151A  A9A0                     syscall    GetResource
  1970. 0000151C  285F                     movea.l    A4, [A7]+
  1971. 0000151E  204C                     movea.l    A0, A4
  1972. 00001520  A029                     syscall    HLock
  1973. 00001522  2F14                     move.l     -[A7], [A4]
  1974. 00001524  598F                     subq.l     A7, 4
  1975. 00001526  2F0C                     move.l     -[A7], A4
  1976. 00001528  4EBA 052A                jsr        [PC + 0x52A /* 00001A54 */]
  1977. 0000152C  486D FDA0                pea.l      [A5 - 0x260]
  1978. 00001530  7000                     moveq.l    D0, 0x00
  1979. 00001532  3F00                     move.w     -[A7], D0
  1980. 00001534  A9CE                     syscall    TETextBox/TextBox
  1981. 00001536  204C                     movea.l    A0, A4
  1982. 00001538  A02A                     syscall    HUnlock
  1983. 0000153A  2F0C                     move.l     -[A7], A4
  1984. 0000153C  A9A3                     syscall    ReleaseResource
  1985. 0000153E  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  1986. 00001542  A873                     syscall    SetPort
  1987. 00001544  286E FFF8                movea.l    A4, [A6 - 0x8]
  1988. 00001548  4E5E                     unlink     A6
  1989. 0000154A  205F                     movea.l    A0, [A7]+
  1990. 0000154C  5C4F                     addq.w     A7, 6
  1991. 0000154E  4ED0                     jmp        [A0]
  1992. export_0:
  1993. 00001550  2057                     movea.l    A0, [A7]
  1994. 00001552  42A7                     clr.l      -[A7]
  1995. 00001554  486D FDB0                pea.l      [A5 - 0x250]
  1996. 00001558  486D FDAC                pea.l      [A5 - 0x254]
  1997. 0000155C  486D FDA8                pea.l      [A5 - 0x258]
  1998. 00001560  2F08                     move.l     -[A7], A0
  1999. 00001562  4EBA 018A                jsr        [PC + 0x18A /* 000016EE */]
  2000. 00001566  72FF                     moveq.l    D1, 0xFFFFFFFF
  2001. 00001568  B041                     cmp.w      D0, D1
  2002. 0000156A  672E                     beq        +0x30 /* 0000159A */
  2003. 0000156C  588F                     addq.l     A7, 4
  2004. 0000156E  4FEF 0010                lea.l      A7, [A7 + 0x10]
  2005. 00001572  486D FFD0                pea.l      [A5 - 0x30]
  2006. 00001576  4EBA 04AE                jsr        [PC + 0x4AE /* 00001A26 */]
  2007. 0000157A  584F                     addq.w     A7, 4
  2008. 0000157C  4A80                     tst.l      D0
  2009. 0000157E  6624                     bne        +0x26 /* 000015A4 */
  2010. 00001580  2F2D FDB0                move.l     -[A7], [A5 - 0x250]
  2011. 00001584  2F2D FDAC                move.l     -[A7], [A5 - 0x254]
  2012. 00001588  2F2D FDA8                move.l     -[A7], [A5 - 0x258]
  2013. 0000158C  4EBA EA72                jsr        [PC - 0x158E /* 00000000 */]
  2014. 00001590  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2015. 00001594  2F00                     move.l     -[A7], D0
  2016. 00001596  4EBA 034E                jsr        [PC + 0x34E /* 000018E6 */]
  2017. label0000159A:
  2018. 0000159A  487A 000A                pea.l      [PC + 0xA /* 000015A6, value 0x1B446174, pstring "Data initialization failed!" */]
  2019. 0000159E  303C FE15                move.w     D0, 0xFE15
  2020. 000015A2  A9C9                     syscall    SysError
  2021. label000015A4:
  2022. 000015A4  4E75                     rts
  2023. 000015A6  1B44 6174                move.b     [A5 + 0x6174], D4
  2024. 000015AA  6120                     bsr        +0x22 /* 000015CC */
  2025. 000015AC  696E                     bvs        +0x70 /* 0000161C */
  2026. 000015AE  6974                     bvs        +0x76 /* 00001624 */
  2027. 000015B0  6961                     bvs        +0x63 /* 00001613 */
  2028. 000015B2  6C69                     bge        +0x6B /* 0000161D */
  2029. 000015B4  7A61                     moveq.l    D5, 0x61
  2030. 000015B6  7469                     moveq.l    D2, 0x69
  2031. 000015B8  6F6E                     ble        +0x70 /* 00001628 */
  2032. 000015BA  2066                     movea.l    A0, -[A6]
  2033. 000015BC  6169                     bsr        +0x6B /* 00001627 */
  2034. 000015BE  6C65                     bge        +0x67 /* 00001625 */
  2035. 000015C0  6421                     bcc        +0x23 /* 000015E3 */
  2036. fn000015C2:
  2037. 000015C2  4E56 FFFC                link       A6, -0x0004
  2038. 000015C6  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  2039. 000015CA  4AAD FED6                tst.l      [A5 - 0x12A]
  2040. // begin alternate branch 000015CC-000015DA
  2041. fn000015CC:
  2042. 000015CC  FED6 6600                .extension 0xED6 <<F/2-3/7>> // unimplemented
  2043. 000015D0  0086 598F 2F3C           ori.l      D6, 0x598F2F3C
  2044. 000015D6  434F                     chk.w      D1, A7
  2045. 000015D8  4445                     neg.w      D5
  2046. // end alternate branch 000015CC-000015DA
  2047. fn000015CC: // (misaligned)
  2048. 000015CE  6600 0086                bne        +0x88 /* 00001656 */
  2049. 000015D2  598F                     subq.l     A7, 4
  2050. 000015D4  2F3C 434F 4445           move.l     -[A7], 0x434F4445 /* 'CODE' */
  2051. 000015DA  486D FE82                pea.l      [A5 - 0x17E]
  2052. 000015DE  A820                     syscall    Get1NamedResource
  2053. 000015E0  265F                     movea.l    A3, [A7]+
  2054. 000015E2  200B                     move.l     D0, A3
  2055. 000015E4  6770                     beq        +0x72 /* 00001656 */
  2056. 000015E6  558F                     subq.l     A7, 2
  2057. 000015E8  A994                     syscall    CurResFile
  2058. 000015EA  558F                     subq.l     A7, 2
  2059. 000015EC  2F0B                     move.l     -[A7], A3
  2060. 000015EE  A9A4                     syscall    HomeResFile
  2061. 000015F0  301F                     move.w     D0, [A7]+
  2062. 000015F2  B05F                     cmp.w      D0, [A7]+
  2063. 000015F4  6660                     bne        +0x62 /* 00001656 */
  2064. 000015F6  41ED 0052                lea.l      A0, [A5 + 0x52 /* export_6 */]
  2065. 000015FA  226D FEF4                movea.l    A1, [A5 - 0x10C]
  2066. 000015FE  2348 000C                move.l     [A1 + 0xC], A0
  2067. 00001602  2D4B FFFC                move.l     [A6 - 0x4], A3
  2068. 00001606  204B                     movea.l    A0, A3
  2069. 00001608  A025                     syscall    GetHandleSize
  2070. 0000160A  5980                     subq.l     D0, 4
  2071. 0000160C  7204                     moveq.l    D1, 0x04
  2072. 0000160E  4EBA 0388                jsr        [PC + 0x388 /* 00001998 */]
  2073. 00001612  2C00                     move.l     D6, D0
  2074. 00001614  7000                     moveq.l    D0, 0x00
  2075. 00001616  2840                     movea.l    A4, D0
  2076. 00001618  602A                     bra        +0x2C /* 00001644 */
  2077. label0000161A:
  2078. 0000161A  2F0B                     move.l     -[A7], A3
  2079. label0000161C:
  2080. 0000161C  A9A2                     syscall    LoadResource
  2081. 0000161E  206E FFFC                movea.l    A0, [A6 - 0x4]
  2082. 00001622  2050                     movea.l    A0, [A0]
  2083. label00001624:
  2084. 00001624  202D FED6                move.l     D0, [A5 - 0x12A]
  2085. label00001628:
  2086. 00001628  E580                     asl        D0, 2
  2087. 0000162A  3030 0804                move.w     D0, [A0 + D0 + 0x4]
  2088. 0000162E  48C0                     ext.l      D0
  2089. 00001630  2E00                     move.l     D7, D0
  2090. 00001632  6708                     beq        +0xA /* 0000163C */
  2091. 00001634  200D                     move.l     D0, A5
  2092. 00001636  2840                     movea.l    A4, D0
  2093. 00001638  D9C7                     add.l      A4, D7
  2094. 0000163A  4E94                     jsr        [A4]
  2095. label0000163C:
  2096. 0000163C  202D FED6                move.l     D0, [A5 - 0x12A]
  2097. 00001640  52AD FED6                addq.l     [A5 - 0x12A], 1
  2098. label00001644:
  2099. 00001644  BCAD FED6                cmp.l      D6, [A5 - 0x12A]
  2100. 00001648  6ED0                     bgt        -0x2E /* 0000161A */
  2101. 0000164A  200C                     move.l     D0, A4
  2102. 0000164C  6704                     beq        +0x6 /* 00001652 */
  2103. 0000164E  2F0C                     move.l     -[A7], A4
  2104. 00001650  A9F1                     syscall    UnloadSeg
  2105. label00001652:
  2106. 00001652  2F0B                     move.l     -[A7], A3
  2107. 00001654  A9A3                     syscall    ReleaseResource
  2108. label00001656:
  2109. 00001656  4CEE 18C0 FFEC           movem.l    D6,D7,A3,A4, [A6 - 0x14]
  2110. 0000165C  4E5E                     unlink     A6
  2111. 0000165E  4E75                     rts
  2112. 00001660  8B5F                     or.w       [A7]+, D5
  2113. 00001662  5F43                     subq.w     D3, 7
  2114. 00001664  706C                     moveq.l    D0, 0x6C
  2115. 00001666  7573                     moveq.l    D2, 0x73
  2116. 00001668  496E 6974                chk.w      D4, [A6 + 0x6974]
  2117. 0000166C  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  2118. export_6: // at 0000166E (misaligned)
  2119. 00001670  FFFC                     .invalid   <<F/7/7>>
  2120. 00001672  48E7 0118                movem.l    -[A7], D7,A3,A4
  2121. 00001676  4AAD FED6                tst.l      [A5 - 0x12A]
  2122. 0000167A  675C                     beq        +0x5E /* 000016D8 */
  2123. 0000167C  598F                     subq.l     A7, 4
  2124. 0000167E  2F3C 434F 4445           move.l     -[A7], 0x434F4445 /* 'CODE' */
  2125. 00001684  486D FEAC                pea.l      [A5 - 0x154]
  2126. 00001688  A9A1                     syscall    GetNamedResource
  2127. 0000168A  265F                     movea.l    A3, [A7]+
  2128. 0000168C  200B                     move.l     D0, A3
  2129. 0000168E  6748                     beq        +0x4A /* 000016D8 */
  2130. 00001690  558F                     subq.l     A7, 2
  2131. 00001692  A994                     syscall    CurResFile
  2132. 00001694  558F                     subq.l     A7, 2
  2133. 00001696  2F0B                     move.l     -[A7], A3
  2134. 00001698  A9A4                     syscall    HomeResFile
  2135. 0000169A  301F                     move.w     D0, [A7]+
  2136. 0000169C  B05F                     cmp.w      D0, [A7]+
  2137. 0000169E  6638                     bne        +0x3A /* 000016D8 */
  2138. 000016A0  2D4B FFFC                move.l     [A6 - 0x4], A3
  2139. 000016A4  6028                     bra        +0x2A /* 000016CE */
  2140. label000016A6:
  2141. 000016A6  2F0B                     move.l     -[A7], A3
  2142. 000016A8  A9A2                     syscall    LoadResource
  2143. 000016AA  53AD FED6                subq.l     [A5 - 0x12A], 1
  2144. 000016AE  206E FFFC                movea.l    A0, [A6 - 0x4]
  2145. 000016B2  2050                     movea.l    A0, [A0]
  2146. 000016B4  202D FED6                move.l     D0, [A5 - 0x12A]
  2147. 000016B8  E580                     asl        D0, 2
  2148. 000016BA  3030 0806                move.w     D0, [A0 + D0 + 0x6]
  2149. 000016BE  48C0                     ext.l      D0
  2150. 000016C0  2E00                     move.l     D7, D0
  2151. 000016C2  200D                     move.l     D0, A5
  2152. 000016C4  2840                     movea.l    A4, D0
  2153. 000016C6  D9C7                     add.l      A4, D7
  2154. 000016C8  4A87                     tst.l      D7
  2155. 000016CA  6702                     beq        +0x4 /* 000016CE */
  2156. 000016CC  4E94                     jsr        [A4]
  2157. label000016CE:
  2158. 000016CE  4AAD FED6                tst.l      [A5 - 0x12A]
  2159. 000016D2  6ED2                     bgt        -0x2C /* 000016A6 */
  2160. 000016D4  2F0B                     move.l     -[A7], A3
  2161. 000016D6  A9A3                     syscall    ReleaseResource
  2162. label000016D8:
  2163. 000016D8  4CEE 1880 FFF0           movem.l    D7,A3,A4, [A6 - 0x10]
  2164. 000016DE  4E5E                     unlink     A6
  2165. 000016E0  4E75                     rts
  2166. 000016E2  8964                     or.w       -[A4], D4
  2167. 000016E4  746F                     moveq.l    D2, 0x6F
  2168. 000016E6  7273                     moveq.l    D1, 0x73
  2169. 000016E8  5F5F                     subq.w     [A7]+, 7
  2170. 000016EA  4676 0000                not.w      [A6 + D0.w]
  2171. fn000016EE:
  2172. 000016EE  4E56 0000                link       A6, 0
  2173. 000016F2  48E7 1338                movem.l    -[A7], D3,D6,D7,A2,A3,A4
  2174. 000016F6  2C2E 0018                move.l     D6, [A6 + 0x18]
  2175. 000016FA  266E 000C                movea.l    A3, [A6 + 0xC]
  2176. 000016FE  4EAD 007A                jsr        [A5 + 0x7A /* export_11 */]
  2177. 00001702  4A80                     tst.l      D0
  2178. 00001704  6706                     beq        +0x8 /* 0000170C */
  2179. 00001706  70FF                     moveq.l    D0, 0xFFFFFFFF
  2180. 00001708  6000 01C8                bra        +0x1CA /* 000018D2 */
  2181. label0000170C:
  2182. 0000170C  206D FEF4                movea.l    A0, [A5 - 0x10C]
  2183. 00001710  20AE 0008                move.l     [A0], [A6 + 0x8]
  2184. 00001714  7001                     moveq.l    D0, 0x01
  2185. 00001716  4AB8 0316                tst.l      [0x00000316 /* HpChk/MacPgm */]
  2186. 0000171A  672C                     beq        +0x2E /* 00001748 */
  2187. 0000171C  7201                     moveq.l    D1, 0x01
  2188. 0000171E  C2B8 0316                and.l      D1, [0x00000316 /* HpChk/MacPgm */]
  2189. 00001722  6624                     bne        +0x26 /* 00001748 */
  2190. 00001724  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2191. 00001728  0C90 4D50 474D           cmpi.l     [A0], 0x4D50474D /* 'MPGM' */
  2192. 0000172E  6618                     bne        +0x1A /* 00001748 */
  2193. 00001730  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2194. 00001734  4AA8 0004                tst.l      [A0 + 0x4]
  2195. 00001738  670E                     beq        +0x10 /* 00001748 */
  2196. 0000173A  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2197. 0000173E  2068 0004                movea.l    A0, [A0 + 0x4]
  2198. 00001742  4A50                     tst.w      [A0]
  2199. 00001744  6702                     beq        +0x4 /* 00001748 */
  2200. 00001746  7000                     moveq.l    D0, 0x00
  2201. label00001748:
  2202. 00001748  4880                     ext.w      D0
  2203. 0000174A  48C0                     ext.l      D0
  2204. 0000174C  2B40 FEDA                move.l     [A5 - 0x126], D0
  2205. 00001750  6760                     beq        +0x62 /* 000017B2 */
  2206. 00001752  41ED FFAE                lea.l      A0, [A5 - 0x52]
  2207. 00001756  43F8 0910                lea.l      A1, [0x00000910 /* CurApName */]
  2208. 0000175A  7007                     moveq.l    D0, 0x07
  2209. label0000175C:
  2210. 0000175C  20D9                     move.l     [A0]+, [A1]+
  2211. 0000175E  51C8 FFFC                dbf        D0, -0x6 /* 0000175C */
  2212. 00001762  30D9                     move.w     [A0]+, [A1]+
  2213. 00001764  41ED FFAE                lea.l      A0, [A5 - 0x52]
  2214. 00001768  226D FEE4                movea.l    A1, [A5 - 0x11C]
  2215. 0000176C  2288                     move.l     [A1], A0
  2216. 0000176E  4A86                     tst.l      D6
  2217. 00001770  660E                     bne        +0x10 /* 00001780 */
  2218. 00001772  598F                     subq.l     A7, 4
  2219. 00001774  206D FEE4                movea.l    A0, [A5 - 0x11C]
  2220. 00001778  2F10                     move.l     -[A7], [A0]
  2221. 0000177A  4EBA 05C4                jsr        [PC + 0x5C4 /* 00001D40 */]
  2222. 0000177E  588F                     addq.l     A7, 4
  2223. label00001780:
  2224. 00001780  200B                     move.l     D0, A3
  2225. 00001782  6704                     beq        +0x6 /* 00001788 */
  2226. 00001784  7001                     moveq.l    D0, 0x01
  2227. 00001786  2680                     move.l     [A3], D0
  2228. label00001788:
  2229. 00001788  4AAE 0010                tst.l      [A6 + 0x10]
  2230. 0000178C  6708                     beq        +0xA /* 00001796 */
  2231. 0000178E  206E 0010                movea.l    A0, [A6 + 0x10]
  2232. 00001792  20AD FEE4                move.l     [A0], [A5 - 0x11C]
  2233. label00001796:
  2234. 00001796  4AAE 0014                tst.l      [A6 + 0x14]
  2235. 0000179A  6708                     beq        +0xA /* 000017A4 */
  2236. 0000179C  206E 0014                movea.l    A0, [A6 + 0x14]
  2237. 000017A0  20AD FEE8                move.l     [A0], [A5 - 0x118]
  2238. label000017A4:
  2239. 000017A4  4EBA FE1C                jsr        [PC - 0x1E4 /* 000015C2 */]
  2240. 000017A8  7001                     moveq.l    D0, 0x01
  2241. 000017AA  2B40 FEDA                move.l     [A5 - 0x126], D0
  2242. 000017AE  6000 0122                bra        +0x124 /* 000018D2 */
  2243. label000017B2:
  2244. 000017B2  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2245. 000017B6  2068 0004                movea.l    A0, [A0 + 0x4]
  2246. 000017BA  302D FEDE                move.w     D0, [A5 - 0x122]
  2247. 000017BE  B050                     cmp.w      D0, [A0]
  2248. 000017C0  670C                     beq        +0xE /* 000017CE */
  2249. 000017C2  2F3C 8000 0000           move.l     -[A7], 0x80000000
  2250. 000017C8  4EBA 013C                jsr        [PC + 0x13C /* 00001906 */]
  2251. 000017CC  588F                     addq.l     A7, 4
  2252. label000017CE:
  2253. 000017CE  41ED FEDE                lea.l      A0, [A5 - 0x122]
  2254. 000017D2  2278 0316                movea.l    A1, [0x00000316 /* HpChk/MacPgm */]
  2255. 000017D6  2269 0004                movea.l    A1, [A1 + 0x4]
  2256. 000017DA  2348 0024                move.l     [A1 + 0x24], A0
  2257. 000017DE  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2258. 000017E2  2B68 0004 FF02           move.l     [A5 - 0xFE], [A0 + 0x4]
  2259. 000017E8  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2260. 000017EC  2068 0004                movea.l    A0, [A0 + 0x4]
  2261. 000017F0  2B68 0002 FEE0           move.l     [A5 - 0x120], [A0 + 0x2]
  2262. 000017F6  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2263. 000017FA  2068 0004                movea.l    A0, [A0 + 0x4]
  2264. 000017FE  2B68 0006 FEE4           move.l     [A5 - 0x11C], [A0 + 0x6]
  2265. 00001804  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2266. 00001808  2068 0004                movea.l    A0, [A0 + 0x4]
  2267. 0000180C  2B68 000A FEE8           move.l     [A5 - 0x118], [A0 + 0xA]
  2268. 00001812  4A86                     tst.l      D6
  2269. 00001814  672C                     beq        +0x2E /* 00001842 */
  2270. 00001816  286D FEE4                movea.l    A4, [A5 - 0x11C]
  2271. 0000181A  600C                     bra        +0xE /* 00001828 */
  2272. label0000181C:
  2273. 0000181C  598F                     subq.l     A7, 4
  2274. 0000181E  2F14                     move.l     -[A7], [A4]
  2275. 00001820  4EBA 04E8                jsr        [PC + 0x4E8 /* 00001D0A */]
  2276. 00001824  588F                     addq.l     A7, 4
  2277. 00001826  588C                     addq.l     A4, 4
  2278. label00001828:
  2279. 00001828  4A94                     tst.l      [A4]
  2280. 0000182A  66F0                     bne        -0xE /* 0000181C */
  2281. 0000182C  286D FEE8                movea.l    A4, [A5 - 0x118]
  2282. 00001830  600C                     bra        +0xE /* 0000183E */
  2283. label00001832:
  2284. 00001832  598F                     subq.l     A7, 4
  2285. 00001834  2F14                     move.l     -[A7], [A4]
  2286. 00001836  4EBA 04D2                jsr        [PC + 0x4D2 /* 00001D0A */]
  2287. 0000183A  588F                     addq.l     A7, 4
  2288. 0000183C  588C                     addq.l     A4, 4
  2289. label0000183E:
  2290. 0000183E  4A94                     tst.l      [A4]
  2291. 00001840  66F0                     bne        -0xE /* 00001832 */
  2292. label00001842:
  2293. 00001842  200B                     move.l     D0, A3
  2294. 00001844  6704                     beq        +0x6 /* 0000184A */
  2295. 00001846  26AD FEE0                move.l     [A3], [A5 - 0x120]
  2296. label0000184A:
  2297. 0000184A  4AAE 0010                tst.l      [A6 + 0x10]
  2298. 0000184E  6708                     beq        +0xA /* 00001858 */
  2299. 00001850  206E 0010                movea.l    A0, [A6 + 0x10]
  2300. 00001854  20AD FEE4                move.l     [A0], [A5 - 0x11C]
  2301. label00001858:
  2302. 00001858  4AAE 0014                tst.l      [A6 + 0x14]
  2303. 0000185C  6708                     beq        +0xA /* 00001866 */
  2304. 0000185E  206E 0014                movea.l    A0, [A6 + 0x14]
  2305. 00001862  20AD FEE8                move.l     [A0], [A5 - 0x118]
  2306. label00001866:
  2307. 00001866  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2308. 0000186A  2068 0004                movea.l    A0, [A0 + 0x4]
  2309. 0000186E  4AA8 0020                tst.l      [A0 + 0x20]
  2310. 00001872  6754                     beq        +0x56 /* 000018C8 */
  2311. 00001874  7078                     moveq.l    D0, 0x78
  2312. 00001876  A11E                     syscall    NewPtr, flags=1
  2313. 00001878  2B48 FEFE                move.l     [A5 - 0x102], A0
  2314. 0000187C  660A                     bne        +0xC /* 00001888 */
  2315. 0000187E  7002                     moveq.l    D0, 0x02
  2316. 00001880  2F00                     move.l     -[A7], D0
  2317. 00001882  4EBA 0082                jsr        [PC + 0x82 /* 00001906 */]
  2318. 00001886  588F                     addq.l     A7, 4
  2319. label00001888:
  2320. 00001888  2078 0316                movea.l    A0, [0x00000316 /* HpChk/MacPgm */]
  2321. 0000188C  2068 0004                movea.l    A0, [A0 + 0x4]
  2322. 00001890  2668 0020                movea.l    A3, [A0 + 0x20]
  2323. 00001894  7E00                     moveq.l    D7, 0x00
  2324. 00001896  7605                     moveq.l    D3, 0x05
  2325. label00001898:
  2326. 00001898  2207                     move.l     D1, D7
  2327. 0000189A  2001                     move.l     D0, D1
  2328. 0000189C  C2FC 0018                mulu.w     D1, 0x18
  2329. 000018A0  4840                     swap.w     D0
  2330. 000018A2  C0FC 0018                mulu.w     D0, 0x18
  2331. 000018A6  4840                     swap.w     D0
  2332. 000018A8  4240                     clr.w      D0
  2333. 000018AA  D280                     add.l      D1, D0
  2334. 000018AC  2C01                     move.l     D6, D1
  2335. 000018AE  206D FEFE                movea.l    A0, [A5 - 0x102]
  2336. 000018B2  43F3 6800                lea.l      A1, [A3 + D6]
  2337. 000018B6  45F0 6800                lea.l      A2, [A0 + D6]
  2338. 000018BA  7005                     moveq.l    D0, 0x05
  2339. label000018BC:
  2340. 000018BC  24D9                     move.l     [A2]+, [A1]+
  2341. 000018BE  51C8 FFFC                dbf        D0, -0x6 /* 000018BC */
  2342. 000018C2  5287                     addq.l     D7, 1
  2343. 000018C4  B687                     cmp.l      D3, D7
  2344. 000018C6  6ED0                     bgt        -0x2E /* 00001898 */
  2345. label000018C8:
  2346. 000018C8  4EBA FCF8                jsr        [PC - 0x308 /* 000015C2 */]
  2347. 000018CC  7000                     moveq.l    D0, 0x00
  2348. 000018CE  2B40 FEDA                move.l     [A5 - 0x126], D0
  2349. label000018D2:
  2350. 000018D2  4CEE 1CC8 FFE8           movem.l    D3,D6,D7,A2,A3,A4, [A6 - 0x18]
  2351. 000018D8  4E5E                     unlink     A6
  2352. 000018DA  4E75                     rts
  2353. 000018DC  875F                     or.w       [A7]+, D3
  2354. 000018DE  5254                     addq.w     [A4], 1
  2355. 000018E0  496E 6974                chk.w      D4, [A6 + 0x6974]
  2356. 000018E4  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  2357. // begin alternate branch 000018E6-000018F0
  2358. fn000018E6:
  2359. 000018E6  4E56 0000                link       A6, 0
  2360. 000018EA  203C 00FF FFFF           move.l     D0, 0xFFFFFF
  2361. // end alternate branch 000018E6-000018F0
  2362. fn000018E6: // (misaligned)
  2363. 000018E8  0000 203C                ori.b      D0, 0x3C /* '<' */
  2364. 000018EC  00FF                     .incomplete
  2365. 000018EE  FFFF                     .invalid   <<F/7/7>>
  2366. 000018F0  C0AE 0008                and.l      D0, [A6 + 0x8]
  2367. 000018F4  2F00                     move.l     -[A7], D0
  2368. 000018F6  4EBA 000E                jsr        [PC + 0xE /* 00001906 */]
  2369. 000018FA  4E5E                     unlink     A6
  2370. 000018FC  4E75                     rts
  2371. 000018FE  8465                     or.w       D2, -[A5]
  2372. 00001900  7869                     moveq.l    D4, 0x69
  2373. 00001902  7400                     moveq.l    D2, 0x00
  2374. 00001904  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  2375. // begin alternate branch 00001906-0000190C
  2376. fn00001906:
  2377. 00001906  4E56 0000                link       A6, 0
  2378. 0000190A  2F0C                     move.l     -[A7], A4
  2379. // end alternate branch 00001906-0000190C
  2380. fn00001906: // (misaligned)
  2381. 00001908  0000 2F0C                ori.b      D0, 0xC
  2382. 0000190C  206D FEF4                movea.l    A0, [A5 - 0x10C]
  2383. 00001910  49E8 008C                lea.l      A4, [A0 + 0x8C]
  2384. 00001914  600A                     bra        +0xC /* 00001920 */
  2385. label00001916:
  2386. 00001916  4A94                     tst.l      [A4]
  2387. 00001918  6704                     beq        +0x6 /* 0000191E */
  2388. 0000191A  2054                     movea.l    A0, [A4]
  2389. 0000191C  4E90                     jsr        [A0]
  2390. label0000191E:
  2391. 0000191E  598C                     subq.l     A4, 4
  2392. label00001920:
  2393. 00001920  206D FEF4                movea.l    A0, [A5 - 0x10C]
  2394. 00001924  B1CC                     cmpa.l     A0, A4
  2395. 00001926  65EE                     bcs        -0x10 /* 00001916 */
  2396. 00001928  4AAD FF02                tst.l      [A5 - 0xFE]
  2397. 0000192C  670A                     beq        +0xC /* 00001938 */
  2398. 0000192E  206D FF02                movea.l    A0, [A5 - 0xFE]
  2399. 00001932  216E 0008 000E           move.l     [A0 + 0xE], [A6 + 0x8]
  2400. label00001938:
  2401. 00001938  4AAD FFE8                tst.l      [A5 - 0x18]
  2402. 0000193C  660A                     bne        +0xC /* 00001948 */
  2403. 0000193E  206D FEF4                movea.l    A0, [A5 - 0x10C]
  2404. 00001942  2250                     movea.l    A1, [A0]
  2405. 00001944  4E91                     jsr        [A1]
  2406. 00001946  600E                     bra        +0x10 /* 00001956 */
  2407. label00001948:
  2408. 00001948  7001                     moveq.l    D0, 0x01
  2409. 0000194A  2F00                     move.l     -[A7], D0
  2410. 0000194C  486D FFD0                pea.l      [A5 - 0x30]
  2411. 00001950  4EBA 00E0                jsr        [PC + 0xE0 /* 00001A32 */]
  2412. 00001954  508F                     addq.l     A7, 8
  2413. label00001956:
  2414. 00001956  286E FFFC                movea.l    A4, [A6 - 0x4]
  2415. 0000195A  4E5E                     unlink     A6
  2416. 0000195C  4E75                     rts
  2417. 0000195E  875F                     or.w       [A7]+, D3
  2418. 00001960  5254                     addq.w     [A4], 1
  2419. 00001962  4578 6974                chk.w      D2, [0x00006974]
  2420. 00001966  0000 202F                ori.b      D0, 0x2F /* '/' */
  2421. 0000196A  0004 222F                ori.b      D4, 0x2F /* '/' */
  2422. 0000196E  0008 2F02                ori.b      A0, 0x2
  2423. // begin alternate branch 00001970-00001972
  2424. fn00001970:
  2425. 00001970  2F02                     move.l     -[A7], D2
  2426. // end alternate branch 00001970-00001972
  2427. fn00001970: // (misaligned)
  2428. 00001972  2400                     move.l     D2, D0
  2429. 00001974  C4C1                     mulu.w     D2, D1
  2430. 00001976  2042                     movea.l    A0, D2
  2431. 00001978  2401                     move.l     D2, D1
  2432. 0000197A  4842                     swap.w     D2
  2433. 0000197C  C4C0                     mulu.w     D2, D0
  2434. 0000197E  4840                     swap.w     D0
  2435. 00001980  C2C0                     mulu.w     D1, D0
  2436. 00001982  D441                     add.w      D2, D1
  2437. 00001984  4842                     swap.w     D2
  2438. 00001986  4242                     clr.w      D2
  2439. 00001988  D1C2                     add.l      A0, D2
  2440. 0000198A  2008                     move.l     D0, A0
  2441. 0000198C  241F                     move.l     D2, [A7]+
  2442. 0000198E  4E75                     rts
  2443. 00001990  222F 0004                move.l     D1, [A7 + 0x4]
  2444. 00001994  202F 0008                move.l     D0, [A7 + 0x8]
  2445. fn00001998:
  2446. 00001998  4EBA 000E                jsr        [PC + 0xE /* 000019A8 */]
  2447. 0000199C  2001                     move.l     D0, D1
  2448. 0000199E  4E75                     rts
  2449. 000019A0  222F 0004                move.l     D1, [A7 + 0x4]
  2450. 000019A4  202F 0008                move.l     D0, [A7 + 0x8]
  2451. fn000019A8:
  2452. 000019A8  48E7 0600                movem.l    -[A7], D5,D6
  2453. 000019AC  2A00                     move.l     D5, D0
  2454. 000019AE  6A02                     bpl        +0x4 /* 000019B2 */
  2455. 000019B0  4480                     neg.l      D0
  2456. label000019B2:
  2457. 000019B2  2C01                     move.l     D6, D1
  2458. 000019B4  6A02                     bpl        +0x4 /* 000019B8 */
  2459. 000019B6  4481                     neg.l      D1
  2460. label000019B8:
  2461. 000019B8  4EBA 001C                jsr        [PC + 0x1C /* 000019D6 */]
  2462. 000019BC  4A85                     tst.l      D5
  2463. 000019BE  6A02                     bpl        +0x4 /* 000019C2 */
  2464. 000019C0  4480                     neg.l      D0
  2465. label000019C2:
  2466. 000019C2  BB86                     xor.l      D6, D5
  2467. 000019C4  6A02                     bpl        +0x4 /* 000019C8 */
  2468. 000019C6  4481                     neg.l      D1
  2469. label000019C8:
  2470. 000019C8  4CDF 0060                movem.l    D5,D6, [A7]+
  2471. 000019CC  4E75                     rts
  2472. 000019CE  222F 0004                move.l     D1, [A7 + 0x4]
  2473. 000019D2  202F 0008                move.l     D0, [A7 + 0x8]
  2474. fn000019D6:
  2475. 000019D6  48E7 3800                movem.l    -[A7], D2,D3,D4
  2476. 000019DA  2401                     move.l     D2, D1
  2477. 000019DC  4842                     swap.w     D2
  2478. 000019DE  4A42                     tst.w      D2
  2479. 000019E0  661C                     bne        +0x1E /* 000019FE */
  2480. 000019E2  3600                     move.w     D3, D0
  2481. 000019E4  4240                     clr.w      D0
  2482. 000019E6  4840                     swap.w     D0
  2483. 000019E8  6704                     beq        +0x6 /* 000019EE */
  2484. 000019EA  80C1                     divu.w     D0, D1
  2485. 000019EC  3400                     move.w     D2, D0
  2486. label000019EE:
  2487. 000019EE  4842                     swap.w     D2
  2488. 000019F0  3003                     move.w     D0, D3
  2489. 000019F2  80C1                     divu.w     D0, D1
  2490. 000019F4  3400                     move.w     D2, D0
  2491. 000019F6  2202                     move.l     D1, D2
  2492. 000019F8  4240                     clr.w      D0
  2493. 000019FA  4840                     swap.w     D0
  2494. 000019FC  6022                     bra        +0x24 /* 00001A20 */
  2495. label000019FE:
  2496. 000019FE  2400                     move.l     D2, D0
  2497. 00001A00  4240                     clr.w      D0
  2498. 00001A02  4840                     swap.w     D0
  2499. 00001A04  4842                     swap.w     D2
  2500. 00001A06  4242                     clr.w      D2
  2501. 00001A08  2601                     move.l     D3, D1
  2502. 00001A0A  7200                     moveq.l    D1, 0x00
  2503. 00001A0C  780F                     moveq.l    D4, 0x0F
  2504. label00001A0E:
  2505. 00001A0E  D482                     add.l      D2, D2
  2506. 00001A10  D180                     addx.l     D0, D0
  2507. 00001A12  D281                     add.l      D1, D1
  2508. 00001A14  B083                     cmp.l      D0, D3
  2509. 00001A16  6504                     bcs        +0x6 /* 00001A1C */
  2510. 00001A18  9083                     sub.l      D0, D3
  2511. 00001A1A  5201                     addq.b     D1, 1
  2512. label00001A1C:
  2513. 00001A1C  51CC FFF0                dbf        D4, -0x12 /* 00001A0E */
  2514. label00001A20:
  2515. 00001A20  4CDF 001C                movem.l    D2,D3,D4, [A7]+
  2516. 00001A24  4E75                     rts
  2517. fn00001A26:
  2518. 00001A26  225F                     movea.l    A1, [A7]+
  2519. 00001A28  2057                     movea.l    A0, [A7]
  2520. 00001A2A  48D0 DEFC                movem.l    [A0], D2,D3,D4,D5,D6,D7,A1,A2,A3,A4,A6,A7
  2521. 00001A2E  7000                     moveq.l    D0, 0x00
  2522. 00001A30  4ED1                     jmp        [A1]
  2523. fn00001A32:
  2524. 00001A32  202F 0008                move.l     D0, [A7 + 0x8]
  2525. 00001A36  6602                     bne        +0x4 /* 00001A3A */
  2526. 00001A38  7001                     moveq.l    D0, 0x01
  2527. label00001A3A:
  2528. 00001A3A  206F 0004                movea.l    A0, [A7 + 0x4]
  2529. 00001A3E  4CD0 DEFC                movem.l    D2,D3,D4,D5,D6,D7,A1,A2,A3,A4,A6,A7, [A0]
  2530. 00001A42  4ED1                     jmp        [A1]
  2531. 00001A44  4E71                     nop
  2532. label00001A46:
  2533. 00001A46  7000                     moveq.l    D0, 0x00
  2534. label00001A48:
  2535. 00001A48  2F09                     move.l     -[A7], A1
  2536. label00001A4A:
  2537. 00001A4A  31C0 0220                move.w     [0x00000220 /* MemErr */], D0
  2538. 00001A4E  4E75                     rts
  2539. 00001A50  7000                     moveq.l    D0, 0x00
  2540. 00001A52  60F6                     bra        -0x8 /* 00001A4A */
  2541. fn00001A54:
  2542. 00001A54  225F                     movea.l    A1, [A7]+
  2543. 00001A56  205F                     movea.l    A0, [A7]+
  2544. 00001A58  A025                     syscall    GetHandleSize
  2545. 00001A5A  2E80                     move.l     [A7], D0
  2546. 00001A5C  6A06                     bpl        +0x8 /* 00001A64 */
  2547. 00001A5E  4297                     clr.l      [A7]
  2548. 00001A60  4EFA FFE6                jmp        [PC - 0x1A /* 00001A48 */]
  2549. label00001A64:
  2550. 00001A64  4EFA FFE0                jmp        [PC - 0x20 /* 00001A46 */]
  2551. fn00001A68:
  2552. 00001A68  225F                     movea.l    A1, [A7]+
  2553. 00001A6A  121F                     move.b     D1, [A7]+
  2554. 00001A6C  301F                     move.w     D0, [A7]+
  2555. 00001A6E  4A01                     tst.b      D1
  2556. 00001A70  6704                     beq        +0x6 /* 00001A76 */
  2557. 00001A72  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  2558. 00001A74  6002                     bra        +0x4 /* 00001A78 */
  2559. label00001A76:
  2560. 00001A76  A346                     syscall    GetOSTrapAddress, flags=3
  2561. label00001A78:
  2562. 00001A78  2E88                     move.l     [A7], A0
  2563. 00001A7A  4ED1                     jmp        [A1]
  2564. fn00001A7C:
  2565. 00001A7C  4E56 FFCE                link       A6, -0x0032
  2566. 00001A80  204F                     movea.l    A0, A7
  2567. 00001A82  216E 000E 0012           move.l     [A0 + 0x12], [A6 + 0xE]
  2568. 00001A88  316E 000C 0016           move.w     [A0 + 0x16], [A6 + 0xC]
  2569. 00001A8E  4228 001A                clr.b      [A0 + 0x1A]
  2570. 00001A92  4228 001B                clr.b      [A0 + 0x1B]
  2571. 00001A96  42A8 001C                clr.l      [A0 + 0x1C]
  2572. 00001A9A  A000                     syscall    Open/PBHOpen/HOpen
  2573. 00001A9C  226E 0008                movea.l    A1, [A6 + 0x8]
  2574. 00001AA0  32A8 0018                move.w     [A1], [A0 + 0x18]
  2575. 00001AA4  3D40 0012                move.w     [A6 + 0x12], D0
  2576. 00001AA8  4E5E                     unlink     A6
  2577. 00001AAA  205F                     movea.l    A0, [A7]+
  2578. 00001AAC  4FEF 000A                lea.l      A7, [A7 + 0xA]
  2579. 00001AB0  4ED0                     jmp        [A0]
  2580. fn00001AB2:
  2581. 00001AB2  4E56 FFCE                link       A6, -0x0032
  2582. 00001AB6  204F                     movea.l    A0, A7
  2583. 00001AB8  316E 0008 0018           move.w     [A0 + 0x18], [A6 + 0x8]
  2584. 00001ABE  A001                     syscall    Close
  2585. 00001AC0  3D40 000A                move.w     [A6 + 0xA], D0
  2586. 00001AC4  4E5E                     unlink     A6
  2587. 00001AC6  205F                     movea.l    A0, [A7]+
  2588. 00001AC8  548F                     addq.l     A7, 2
  2589. 00001ACA  4ED0                     jmp        [A0]
  2590. fn00001ACC:
  2591. 00001ACC  51C1                     sf         D1
  2592. 00001ACE  6002                     bra        +0x4 /* 00001AD2 */
  2593. fn00001AD0:
  2594. 00001AD0  50C1                     st         D1
  2595. label00001AD2:
  2596. 00001AD2  4E56 FFCE                link       A6, -0x0032
  2597. 00001AD6  204F                     movea.l    A0, A7
  2598. 00001AD8  216E 0008 0020           move.l     [A0 + 0x20], [A6 + 0x8]
  2599. 00001ADE  316E 0010 0018           move.w     [A0 + 0x18], [A6 + 0x10]
  2600. 00001AE4  226E 000C                movea.l    A1, [A6 + 0xC]
  2601. 00001AE8  2151 0024                move.l     [A0 + 0x24], [A1]
  2602. 00001AEC  4268 002C                clr.w      [A0 + 0x2C]
  2603. 00001AF0  42A8 002E                clr.l      [A0 + 0x2E]
  2604. 00001AF4  4A01                     tst.b      D1
  2605. 00001AF6  6604                     bne        +0x6 /* 00001AFC */
  2606. 00001AF8  A002                     syscall    Read
  2607. 00001AFA  6002                     bra        +0x4 /* 00001AFE */
  2608. label00001AFC:
  2609. 00001AFC  A003                     syscall    Write
  2610. label00001AFE:
  2611. 00001AFE  3D40 0012                move.w     [A6 + 0x12], D0
  2612. 00001B02  226E 000C                movea.l    A1, [A6 + 0xC]
  2613. 00001B06  22A8 0028                move.l     [A1], [A0 + 0x28]
  2614. 00001B0A  4E5E                     unlink     A6
  2615. 00001B0C  225F                     movea.l    A1, [A7]+
  2616. 00001B0E  4FEF 000A                lea.l      A7, [A7 + 0xA]
  2617. 00001B12  4ED1                     jmp        [A1]
  2618. fn00001B14:
  2619. 00001B14  4E56 FFC0                link       A6, -0x0040
  2620. 00001B18  41EE FFC0                lea.l      A0, [A6 - 0x40]
  2621. 00001B1C  216E 000C 0012           move.l     [A0 + 0x12], [A6 + 0xC]
  2622. 00001B22  A014                     syscall    GetVol/PBHGetVol/HGetVol
  2623. 00001B24  3D40 0010                move.w     [A6 + 0x10], D0
  2624. 00001B28  226E 0008                movea.l    A1, [A6 + 0x8]
  2625. 00001B2C  32A8 0016                move.w     [A1], [A0 + 0x16]
  2626. 00001B30  4E5E                     unlink     A6
  2627. 00001B32  225F                     movea.l    A1, [A7]+
  2628. 00001B34  508F                     addq.l     A7, 8
  2629. 00001B36  4ED1                     jmp        [A1]
  2630. fn00001B38:
  2631. 00001B38  4E56 0000                link       A6, 0
  2632. 00001B3C  594F                     subq.w     A7, 4
  2633. 00001B3E  2F3C 5354 5223           move.l     -[A7], 0x53545223 /* 'STR#' */
  2634. 00001B44  3F2E 000A                move.w     -[A7], [A6 + 0xA]
  2635. 00001B48  A9A0                     syscall    GetResource
  2636. 00001B4A  226E 000C                movea.l    A1, [A6 + 0xC]
  2637. 00001B4E  4211                     clr.b      [A1]
  2638. 00001B50  201F                     move.l     D0, [A7]+
  2639. 00001B52  6722                     beq        +0x24 /* 00001B76 */
  2640. 00001B54  2040                     movea.l    A0, D0
  2641. 00001B56  2050                     movea.l    A0, [A0]
  2642. 00001B58  3018                     move.w     D0, [A0]+
  2643. 00001B5A  322E 0008                move.w     D1, [A6 + 0x8]
  2644. 00001B5E  6716                     beq        +0x18 /* 00001B76 */
  2645. 00001B60  B240                     cmp.w      D1, D0
  2646. 00001B62  6212                     bhi        +0x14 /* 00001B76 */
  2647. 00001B64  7000                     moveq.l    D0, 0x00
  2648. label00001B66:
  2649. 00001B66  5341                     subq.w     D1, 1
  2650. 00001B68  6706                     beq        +0x8 /* 00001B70 */
  2651. 00001B6A  1018                     move.b     D0, [A0]+
  2652. 00001B6C  D1C0                     add.l      A0, D0
  2653. 00001B6E  60F6                     bra        -0x8 /* 00001B66 */
  2654. label00001B70:
  2655. 00001B70  1010                     move.b     D0, [A0]
  2656. 00001B72  5240                     addq.w     D0, 1
  2657. 00001B74  A02E                     syscall    BlockMove/BlockMoveData
  2658. label00001B76:
  2659. 00001B76  4E5E                     unlink     A6
  2660. 00001B78  205F                     movea.l    A0, [A7]+
  2661. 00001B7A  508F                     addq.l     A7, 8
  2662. 00001B7C  4ED0                     jmp        [A0]
  2663. fn00001B7E:
  2664. 00001B7E  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  2665. 00001B82  6B22                     bmi        +0x24 /* 00001BA6 */
  2666. 00001B84  303C 0090                move.w     D0, 0x90
  2667. 00001B88  A346                     syscall    GetOSTrapAddress, flags=3
  2668. 00001B8A  2248                     movea.l    A1, A0
  2669. 00001B8C  303C 009F                move.w     D0, 0x9F
  2670. 00001B90  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  2671. 00001B92  B3C8                     cmpa.l     A1, A0
  2672. 00001B94  6710                     beq        +0x12 /* 00001BA6 */
  2673. 00001B96  225F                     movea.l    A1, [A7]+
  2674. 00001B98  205F                     movea.l    A0, [A7]+
  2675. 00001B9A  301F                     move.w     D0, [A7]+
  2676. 00001B9C  2F09                     move.l     -[A7], A1
  2677. 00001B9E  A090                     syscall    SysEnvirons
  2678. 00001BA0  3F40 0004                move.w     [A7 + 0x4], D0
  2679. 00001BA4  4E75                     rts
  2680. label00001BA6:
  2681. 00001BA6  206F 0004                movea.l    A0, [A7 + 0x4]
  2682. 00001BAA  303C 0001                move.w     D0, 0x1
  2683. 00001BAE  2248                     movea.l    A1, A0
  2684. 00001BB0  6006                     bra        +0x8 /* 00001BB8 */
  2685. 00001BB2  0313                     btst       [A3], D1
  2686. 00001BB4  0B02                     btst       D2, D5
  2687. 00001BB6  0100                     btst       D0, D0
  2688. label00001BB8:
  2689. 00001BB8  303C 0010                move.w     D0, 0x10
  2690. 00001BBC  E240                     asr        D0.w, 1
  2691. 00001BBE  5340                     subq.w     D0, 1
  2692. label00001BC0:
  2693. 00001BC0  4258                     clr.w      [A0]+
  2694. 00001BC2  51C8 FFFC                dbf        D0, -0x6 /* 00001BC0 */
  2695. 00001BC6  32BC 0001                move.w     [A1], 0x1
  2696. 00001BCA  2078 02AE                movea.l    A0, [0x000002AE /* ROMBase */]
  2697. 00001BCE  337C FFFE 0002           move.w     [A1 + 0x2], 0xFFFE
  2698. 00001BD4  0C28 00FF 0009           cmpi.b     [A0 + 0x9], 0xFF
  2699. 00001BDA  6742                     beq        +0x44 /* 00001C1E */
  2700. 00001BDC  4A28 0008                tst.b      [A0 + 0x8]
  2701. 00001BE0  6E20                     bgt        +0x22 /* 00001C02 */
  2702. 00001BE2  337C FFFF 0002           move.w     [A1 + 0x2], 0xFFFF
  2703. 00001BE8  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  2704. 00001BEC  6B30                     bmi        +0x32 /* 00001C1E */
  2705. 00001BEE  337C 0001 0002           move.w     [A1 + 0x2], 0x1
  2706. 00001BF4  4A78 0B22                tst.w      [0x00000B22 /* HWCfgFlags */]
  2707. 00001BF8  6A24                     bpl        +0x26 /* 00001C1E */
  2708. 00001BFA  337C 0002 0002           move.w     [A1 + 0x2], 0x2
  2709. 00001C00  601C                     bra        +0x1E /* 00001C1E */
  2710. label00001C02:
  2711. 00001C02  4269 0002                clr.w      [A1 + 0x2]
  2712. 00001C06  0C28 0002 0008           cmpi.b     [A0 + 0x8], 0x2
  2713. 00001C0C  6E10                     bgt        +0x12 /* 00001C1E */
  2714. 00001C0E  6708                     beq        +0xA /* 00001C18 */
  2715. 00001C10  337C 0004 0002           move.w     [A1 + 0x2], 0x4
  2716. 00001C16  6006                     bra        +0x8 /* 00001C1E */
  2717. label00001C18:
  2718. 00001C18  337C 0003 0002           move.w     [A1 + 0x2], 0x3
  2719. label00001C1E:
  2720. 00001C1E  4269 0004                clr.w      [A1 + 0x4]
  2721. 00001C22  0C38 0002 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x2
  2722. 00001C28  6E0A                     bgt        +0xC /* 00001C34 */
  2723. 00001C2A  1038 012F                move.b     D0, [0x0000012F /* CPUFlag */]
  2724. 00001C2E  5240                     addq.w     D0, 1
  2725. 00001C30  1340 0007                move.b     [A1 + 0x7], D0
  2726. label00001C34:
  2727. 00001C34  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  2728. 00001C38  6B0E                     bmi        +0x10 /* 00001C48 */
  2729. 00001C3A  0838 0004 0B22           btst.b     [0x00000B22 /* HWCfgFlags */], 0x4
  2730. 00001C40  6706                     beq        +0x8 /* 00001C48 */
  2731. 00001C42  137C 0001 0008           move.b     [A1 + 0x8], 0x1
  2732. label00001C48:
  2733. 00001C48  0C78 3FFF 028E           cmpi.w     [0x0000028E /* ROM85 */], 0x3FFF
  2734. 00001C4E  6206                     bhi        +0x8 /* 00001C56 */
  2735. 00001C50  137C 0001 0009           move.b     [A1 + 0x9], 0x1
  2736. label00001C56:
  2737. 00001C56  1038 021E                move.b     D0, [0x0000021E /* KbdType */]
  2738. 00001C5A  41FA FF5B                lea.l      A0, [PC - 0xA5 /* 00001BB7, value 0x303C00 '0<\0', cstring "" */]
  2739. 00001C5E  323C 0004                move.w     D1, 0x4
  2740. label00001C62:
  2741. 00001C62  B020                     cmp.b      D0, -[A0]
  2742. 00001C64  57C9 FFFC                dbeq       D1, -0x6 /* 00001C62 */
  2743. 00001C68  5241                     addq.w     D1, 1
  2744. 00001C6A  3341 000A                move.w     [A1 + 0xA], D1
  2745. 00001C6E  4A38 0291                tst.b      [0x00000291 /* PortBUse */]
  2746. 00001C72  6B18                     bmi        +0x1A /* 00001C8C */
  2747. 00001C74  1238 01FB                move.b     D1, [0x000001FB /* SPConfig */]
  2748. 00001C78  0201 000F                andi.b     D1, 0xF
  2749. 00001C7C  0C01 0001                cmpi.b     D1, 0x1
  2750. 00001C80  660A                     bne        +0xC /* 00001C8C */
  2751. 00001C82  2078 02DC                movea.l    A0, [0x000002DC /* ABusDCE */]
  2752. 00001C86  1368 0007 000D           move.b     [A1 + 0xD], [A0 + 0x7]
  2753. label00001C8C:
  2754. 00001C8C  3378 0210 000E           move.w     [A1 + 0xE], [0x00000210 /* BootDrive */]
  2755. 00001C92  4A78 03F6                tst.w      [0x000003F6 /* FSFCBLen */]
  2756. 00001C96  6D44                     blt        +0x46 /* 00001CDC */
  2757. 00001C98  4269 000E                clr.w      [A1 + 0xE]
  2758. 00001C9C  323C 003C                move.w     D1, 0x3C /* '<' */
  2759. label00001CA0:
  2760. 00001CA0  4267                     clr.w      -[A7]
  2761. 00001CA2  51C9 FFFC                dbf        D1, -0x6 /* 00001CA0 */
  2762. 00001CA6  204F                     movea.l    A0, A7
  2763. 00001CA8  3178 0A58 0018           move.w     [A0 + 0x18], [0x00000A58 /* SysMap */]
  2764. 00001CAE  7008                     moveq.l    D0, 0x08
  2765. 00001CB0  A260                     syscall    FSDispatch/HFSDispatch, flags=2
  2766. 00001CB2  6624                     bne        +0x26 /* 00001CD8 */
  2767. 00001CB4  3168 0034 0016           move.w     [A0 + 0x16], [A0 + 0x34]
  2768. 00001CBA  A207                     syscall    GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
  2769. 00001CBC  661A                     bne        +0x1C /* 00001CD8 */
  2770. 00001CBE  2168 005A 0030           move.l     [A0 + 0x30], [A0 + 0x5A]
  2771. 00001CC4  217C 4552 494B 001C      move.l     [A0 + 0x1C], 0x4552494B /* 'ERIK' */
  2772. 00001CCC  7001                     moveq.l    D0, 0x01
  2773. 00001CCE  A260                     syscall    FSDispatch/HFSDispatch, flags=2
  2774. 00001CD0  6606                     bne        +0x8 /* 00001CD8 */
  2775. 00001CD2  3368 0016 000E           move.w     [A1 + 0xE], [A0 + 0x16]
  2776. label00001CD8:
  2777. 00001CD8  4FEF 007A                lea.l      A7, [A7 + 0x7A]
  2778. label00001CDC:
  2779. 00001CDC  2049                     movea.l    A0, A1
  2780. 00001CDE  225F                     movea.l    A1, [A7]+
  2781. 00001CE0  5C4F                     addq.w     A7, 6
  2782. 00001CE2  3EBC EA84                move.w     [A7], 0xEA84
  2783. 00001CE6  4ED1                     jmp        [A1]
  2784. fn00001CE8:
  2785. 00001CE8  7402                     moveq.l    D2, 0x02
  2786. label00001CEA:
  2787. 00001CEA  205F                     movea.l    A0, [A7]+
  2788. 00001CEC  3F02                     move.w     -[A7], D2
  2789. 00001CEE  2F08                     move.l     -[A7], A0
  2790. 00001CF0  ADE9                     syscall    Pack2, auto_pop
  2791. fn00001CF2:
  2792. 00001CF2  7400                     moveq.l    D2, 0x00
  2793. 00001CF4  4EFA FFF4                jmp        [PC - 0xC /* 00001CEA */]
  2794. fn00001CF8:
  2795. 00001CF8  206F 0004                movea.l    A0, [A7 + 0x4]
  2796. 00001CFC  202F 0008                move.l     D0, [A7 + 0x8]
  2797. 00001D00  4267                     clr.w      -[A7]
  2798. 00001D02  A9EE                     syscall    Pack7/DecStr68K
  2799. 00001D04  205F                     movea.l    A0, [A7]+
  2800. 00001D06  504F                     addq.w     A7, 8
  2801. 00001D08  4ED0                     jmp        [A0]
  2802. fn00001D0A:
  2803. 00001D0A  202F 0004                move.l     D0, [A7 + 0x4]
  2804. 00001D0E  2F40 0008                move.l     [A7 + 0x8], D0
  2805. 00001D12  6726                     beq        +0x28 /* 00001D3A */
  2806. 00001D14  2040                     movea.l    A0, D0
  2807. 00001D16  2248                     movea.l    A1, A0
  2808. 00001D18  1019                     move.b     D0, [A1]+
  2809. 00001D1A  671E                     beq        +0x20 /* 00001D3A */
  2810. label00001D1C:
  2811. 00001D1C  1211                     move.b     D1, [A1]
  2812. 00001D1E  12C0                     move.b     [A1]+, D0
  2813. 00001D20  1001                     move.b     D0, D1
  2814. 00001D22  66F8                     bne        -0x6 /* 00001D1C */
  2815. 00001D24  93C8                     sub.l      A1, A0
  2816. 00001D26  2009                     move.l     D0, A1
  2817. 00001D28  5340                     subq.w     D0, 1
  2818. 00001D2A  0C80 0000 00FF           cmpi.l     D0, 0xFF
  2819. 00001D30  6F06                     ble        +0x8 /* 00001D38 */
  2820. 00001D32  203C 0000 00FF           move.l     D0, 0xFF
  2821. label00001D38:
  2822. 00001D38  1080                     move.b     [A0], D0
  2823. label00001D3A:
  2824. 00001D3A  225F                     movea.l    A1, [A7]+
  2825. 00001D3C  584F                     addq.w     A7, 4
  2826. 00001D3E  4ED1                     jmp        [A1]
  2827. fn00001D40:
  2828. 00001D40  225F                     movea.l    A1, [A7]+
  2829. 00001D42  201F                     move.l     D0, [A7]+
  2830. 00001D44  2E80                     move.l     [A7], D0
  2831. 00001D46  6712                     beq        +0x14 /* 00001D5A */
  2832. 00001D48  2040                     movea.l    A0, D0
  2833. 00001D4A  7000                     moveq.l    D0, 0x00
  2834. 00001D4C  1010                     move.b     D0, [A0]
  2835. 00001D4E  6004                     bra        +0x6 /* 00001D54 */
  2836. label00001D50:
  2837. 00001D50  10E8 0001                move.b     [A0]+, [A0 + 0x1]
  2838. label00001D54:
  2839. 00001D54  51C8 FFFA                dbf        D0, -0x8 /* 00001D50 */
  2840. 00001D58  4210                     clr.b      [A0]
  2841. label00001D5A:
  2842. 00001D5A  4ED1                     jmp        [A1]
  2843.